src/Providers/ErrorHandlerProvider.php
/**
     * Renders the exception
     *
     * @param Throwable $exception
     * @return void
     */
Renders the exception
@param Throwable $exception
@return void
Renders the exception @param Throwable $exception @return void
public function renderException(Throwable $exception): void
    {
        $response = new JsonResponse();
        if ($exception instanceof RouteNotFoundException) {
            $response
                ->setStatusCode(404)
                ->send();
        }
        $response
            ->setStatusCode(500)
            ->send();
    }
public function renderException ( Throwable $ exception ) : void { $ response = new JsonResponse ( ) ; if ( $ exception instanceof RouteNotFoundException ) { $ response -> setStatusCode ( 404 ) -> send ( ) ; } $ response -> setStatusCode ( 500 ) -> send ( ) ; }
Renders the exception
 @param Throwable $exception
 @return void
Renders the exception @param Throwable $exception @return void