예제 #1
0
파일: SynxErr.php 프로젝트: simpart/trut
 /**
  * @fn    __construct
  * @brief set error string
  * @param string : error couse
  */
 function __construct($err)
 {
     try {
         parent::__construct($err, "please check 'spac mod -h' responce");
         $this->setHeader("Syntax ");
     } catch (\Exception $e) {
         throw $e;
     }
 }
예제 #2
0
파일: GenSynxErr.php 프로젝트: simpart/trut
 /**
  * @fn    __construct
  * @brief set error string
  * @param string : error couse
  */
 function __construct($err)
 {
     try {
         parent::__construct($err, "please check 'spac gen -h' responce");
         $this->setHeader("Syntax ");
     } catch (\Exception $e) {
         throw new \Exception(PHP_EOL . 'ERR(File:' . \basename(__FILE__) . ',' . 'Line:' . __LINE__ . '):' . \get_class($this) . '->' . __FUNCTION__ . '()' . $e->getMessage());
     }
 }
예제 #3
0
파일: GenErr.php 프로젝트: simpart/trut
 public function __construct($err, $sup)
 {
     try {
         parent::__construct($err, $sup);
         $this->setHeader("Gen ");
     } catch (\Exception $e) {
         throw $e;
     }
     #    #parent::__construct($err, $sup);
     #    #$this->setHeader("Gen ");
     #    echo $e->getMessage();
 }