Exemplo n.º 1
0
 /**
  * @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;
     }
 }
Exemplo n.º 2
0
 /**
  * @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());
     }
 }
Exemplo n.º 3
0
 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();
 }