File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010use Froiden \RestAPI \Exceptions \ValidationException ;
1111use Illuminate \Database \Eloquent \ModelNotFoundException ;
1212use Illuminate \Database \QueryException ;
13- use Illuminate \Http \Exception \HttpResponseException ;
13+ use Illuminate \Http \Exceptions \HttpResponseException ;
1414use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
15+ use Throwable ;
1516
1617class ApiExceptionHandler extends Handler
1718{
1819
19- public function render ($ request , \ Exception $ e )
20+ public function render ($ request , Throwable $ e )
2021 {
2122 $ debug = config ('app.debug ' );
2223 $ prefix = config ("api.prefix " );
2324 // Check if prefix is set and use that debug
24- // This is done to prevent default error message show in otherwise application
25+ // This is done to prevent default error message show in otherwise application
2526 // which are not using the api
2627 if (!$ debug && $ request ->is ($ prefix .'/* ' )) {
2728 if ($ e instanceof HttpResponseException || $ e instanceof \Illuminate \Validation \ValidationException) {
You can’t perform that action at this time.
0 commit comments