public function __construct($path, $method, $error) { $this->_path = $path; $this->_method = $method; $this->_error = $error; $this->_err_message = Headers::set_response($error); $this->_resp_message = Headers::get_response($error); parent::__construct($error); Headers::save($this->_err_message); }
public function __construct($name, $class) { parent::__construct("{$name} is not a Database ({$class})"); Headers::save(Headers::set_response('500')); $this->display_error_page(); }
public function __construct($type) { parent::__construct("{$type} is not a valid type of route"); Headers::save(Headers::set_response('500')); }
public function __construct() { parent::__construct("Headers Type incorrect"); Headers::save(Headers::set_response('500')); }
public static function refresh() { Headers::save('Refresh:0'); }
public function set_charset($charset) { try { Headers::save(Headers::set_charset($charset)); } catch (HeaderTypeException $e) { print_r($e->getMessage()); } return $this; }