Commit 00319fb8 by Qiang Xue

Fixed about previous exception.

parent 4f2a69e9
...@@ -29,11 +29,12 @@ class HttpException extends UserException ...@@ -29,11 +29,12 @@ class HttpException extends UserException
* @param integer $status HTTP status code, such as 404, 500, etc. * @param integer $status HTTP status code, such as 404, 500, etc.
* @param string $message error message * @param string $message error message
* @param integer $code error code * @param integer $code error code
* @param \Exception $previous The previous exception used for the exception chaining.
*/ */
public function __construct($status, $message = null, $code = 0) public function __construct($status, $message = null, $code = 0, \Exception $previous = null)
{ {
$this->statusCode = $status; $this->statusCode = $status;
parent::__construct($message, $code); parent::__construct($message, $code, $previous);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment