Files
pgserver3.0/pgserver/application/admin/exception/Handler.php
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

18 lines
368 B
PHP

<?php
namespace app\admin\exception;
use think\exception\Handle;
class Handler extends Handle
{
public function convertExceptionToResponse(\Exception $exception)
{
if ($exception instanceof RenderException){
return $exception->render();
}else{
return parent::convertExceptionToResponse($exception);
}
}
}