예제 #1
0
 protected function createExceptionMessages($exception)
 {
     $message = [];
     while ($exception) {
         $report = Reporter::createReport($exception);
         $message[] = implode("\n", $report);
         $exception = $exception->getPrevious();
     }
     return implode("\n", $message);
 }
예제 #2
0
파일: Base.php 프로젝트: railsphp/framework
 public function errorHandler($errno, $errstr, $errfile, $errline, $errargs)
 {
     throw ErrorReporter::buildErrorException($errno, $errstr, $errfile, $errline, $errargs);
 }