/** * Creates a new translated exception. * @param string status message, custom content to display with error * @param array translation variables * @param integer the http status code * @return void */ public function __construct($message = NULL, array $variables = NULL, $code = 0) { if ($code == 0) { $code = $this->_code; } //if ( ! isset(Response::$messages[$code])) // throw new K_Exception('Unrecognized HTTP status code: :code . Only valid HTTP status codes are acceptable, see RFC 2616.', array(':code' => $code)); parent::__construct($message, $variables, $code); }