first commit
This commit is contained in:
18
pgserver/application/admin/exception/Handler.php
Normal file
18
pgserver/application/admin/exception/Handler.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user