PHP Class SampleExceptionHandler, laravel-mediable

Inheritance: use trait Plank\Mediable\HandlesMediaUploadExceptions
Afficher le fichier Open project: plank/laravel-mediable

Méthodes publiques

Méthode Description
render ( Exception $e ) : Symfony\Component\HttpKernel\Exception\HttpException | Exception Render an exception into a HttpException for testing purposes.

Method Details

render() public méthode

In laravel's exception handler we would call transformMediaUploadException() inside the render() method, but instead of returning its result, we would pass it to the parent::render().
public render ( Exception $e ) : Symfony\Component\HttpKernel\Exception\HttpException | Exception
$e Exception
Résultat Symfony\Component\HttpKernel\Exception\HttpException | Exception