<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace App\Exceptions; use Exception; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use ModStart\Core\Exception\BizException; use ModStart\Core\Exception\ExceptionReportHandleTrait; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class Handler extends ExceptionHandler { use ExceptionReportHandleTrait; protected $dontReport = array(HttpException::class, ModelNotFoundException::class, BizException::class); public function report(Exception $ZeMaI) { $this->errorReportCheck($ZeMaI); parent::report($ZeMaI); } public function render($LJ_B2, Exception $qtxtp) { goto wTVOE; KIHqP: if (null !== $ao8J2) { return $ao8J2; } goto w2XCn; AoZ3q: $ao8J2 = $this->getExceptionResponse($qtxtp); goto KIHqP; wTVOE: if ($qtxtp instanceof ModelNotFoundException) { $qtxtp = new NotFoundHttpException($qtxtp->getMessage(), $qtxtp); } goto AoZ3q; w2XCn: return parent::render($LJ_B2, $qtxtp); goto Fugla; Fugla: } protected function convertExceptionToResponse(Exception $qtxtp) { goto PYM4_; ZPEBY: return response()->view('errors.500', array('exception' => $qtxtp), 500); goto nqVJ9; ve79G: if (null !== $ao8J2) { return $ao8J2; } goto yYLhu; PYM4_: $ao8J2 = $this->getExceptionResponse($qtxtp); goto ve79G; yYLhu: if (config('env.APP_DEBUG', true)) { return parent::convertExceptionToResponse($qtxtp); } goto ZPEBY; nqVJ9: } protected function shouldntReport(\Exception $qtxtp) { return $this->isExceptionIgnore($qtxtp) || parent::shouldntReport($qtxtp); } }