<?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 $ZpSSU) { $this->errorReportCheck($ZpSSU); parent::report($ZpSSU); } public function render($htIEY, Exception $s6Mnb) { goto aOVCW; cPaAk: return parent::render($htIEY, $s6Mnb); goto CFhEa; ZCMDj: if (null !== $RaGN1) { return $RaGN1; } goto cPaAk; aOVCW: if ($s6Mnb instanceof ModelNotFoundException) { $s6Mnb = new NotFoundHttpException($s6Mnb->getMessage(), $s6Mnb); } goto i3UDE; i3UDE: $RaGN1 = $this->getExceptionResponse($s6Mnb); goto ZCMDj; CFhEa: } protected function convertExceptionToResponse(Exception $s6Mnb) { goto I_CRb; EbP1d: if (config('env.APP_DEBUG', true)) { return parent::convertExceptionToResponse($s6Mnb); } goto AQqDn; I_CRb: $RaGN1 = $this->getExceptionResponse($s6Mnb); goto iQmJI; iQmJI: if (null !== $RaGN1) { return $RaGN1; } goto EbP1d; AQqDn: return response()->view('errors.500', array('exception' => $s6Mnb), 500); goto ivDtS; ivDtS: } protected function shouldntReport(\Exception $s6Mnb) { return $this->isExceptionIgnore($s6Mnb) || parent::shouldntReport($s6Mnb); } }