<?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 $Cgm4H) { $this->errorReportCheck($Cgm4H); parent::report($Cgm4H); } public function render($a9vEM, Exception $HjEaM) { goto jtf1M; NXgnp: return parent::render($a9vEM, $HjEaM); goto N827t; JZ7dE: if (null !== $O__wC) { return $O__wC; } goto NXgnp; MIbeP: $O__wC = $this->getExceptionResponse($HjEaM); goto JZ7dE; jtf1M: if ($HjEaM instanceof ModelNotFoundException) { $HjEaM = new NotFoundHttpException($HjEaM->getMessage(), $HjEaM); } goto MIbeP; N827t: } protected function convertExceptionToResponse(Exception $HjEaM) { goto d9tVL; GoKNK: if (null !== $O__wC) { return $O__wC; } goto Fa9Q3; jWN2x: return response()->view('errors.500', array('exception' => $HjEaM), 500); goto mzUzM; d9tVL: $O__wC = $this->getExceptionResponse($HjEaM); goto GoKNK; Fa9Q3: if (config('env.APP_DEBUG', true)) { return parent::convertExceptionToResponse($HjEaM); } goto jWN2x; mzUzM: } protected function shouldntReport(\Exception $HjEaM) { return $this->isExceptionIgnore($HjEaM) || parent::shouldntReport($HjEaM); } }