mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Added back some toArray() implementations.
This commit is contained in:
@ -145,6 +145,9 @@ class ErrorHandler extends Component
|
||||
'message' => $exception->getMessage(),
|
||||
'code' => $exception->getCode(),
|
||||
];
|
||||
if ($exception instanceof HttpException) {
|
||||
$array['status'] = $exception->statusCode;
|
||||
}
|
||||
if (($prev = $exception->getPrevious()) !== null) {
|
||||
$array['previous'] = $this->convertExceptionToArray($prev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user