PHP Class SampleExceptionHandler, laravel-mediable

Inheritance: use trait Plank\Mediable\HandlesMediaUploadExceptions
Datei anzeigen Open project: plank/laravel-mediable

Public Methods

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

Method Details

render() public method

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
return Symfony\Component\HttpKernel\Exception\HttpException | Exception