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); }