/** * @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; } }
/** * @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()); } }
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(); }