convertExceptionToArray() protected method

Converts an exception into an array.
protected convertExceptionToArray ( Exception $exception ) : array
$exception Exception the exception being converted
return array the array representation of the exception.
コード例 #1
0
ファイル: ErrorHandler.php プロジェクト: cookyii/base
 /**
  * @inheritdoc
  */
 protected function convertExceptionToArray($exception)
 {
     $array = parent::convertExceptionToArray($exception);
     if ($exception instanceof ErrorsException) {
         $array['errors'] = $exception->errors;
     }
     return $array;
 }