<?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 $wpJ0h) { $this->errorReportCheck($wpJ0h); parent::report($wpJ0h); } public function render($O2C5B, Exception $gPOyp) { goto YPkSJ; y09dc: return parent::render($O2C5B, $gPOyp); goto R7h54; YPkSJ: if ($gPOyp instanceof ModelNotFoundException) { $gPOyp = new NotFoundHttpException($gPOyp->getMessage(), $gPOyp); } goto XKqEW; D3Ckz: if (null !== $BWwxe) { return $BWwxe; } goto y09dc; XKqEW: $BWwxe = $this->getExceptionResponse($gPOyp); goto D3Ckz; R7h54: } protected function convertExceptionToResponse(Exception $gPOyp) { goto evvyd; ua8bj: if (env('APP_DEBUG', true)) { return parent::convertExceptionToResponse($gPOyp); } goto Pi_0v; Pi_0v: return response()->view('errors.500', array('exception' => $gPOyp), 500); goto HptGw; Zav3E: if (null !== $BWwxe) { return $BWwxe; } goto ua8bj; evvyd: $BWwxe = $this->getExceptionResponse($gPOyp); goto Zav3E; HptGw: } protected function shouldntReport(\Exception $gPOyp) { return $this->isExceptionIgnore($gPOyp) || parent::shouldntReport($gPOyp); } }