src/HandlesMediaUploadExceptions.php
protected function transformMediaUploadException(Exception $e)
    {
        if ($e instanceof MediaUploadException) {
            $status_code = $this->getStatusCodeForMediaUploadException($e);
            return new HttpException($status_code, $e->getMessage(), $e);
        }

        return $e;
    }
protected function transformMediaUploadException(Exception $e)
    {
        if ($e instanceof MediaUploadException) {
            $status_code = $this->getStatusCodeForMediaUploadException($e);
            return new HttpException($status_code, $e->getMessage(), $e);
        }

        return $e;
    }
protected function transformMediaUploadException ( Exception $ e ) { if ( $ e instanceof MediaUploadException ) { $ status_code = $ this -> getStatusCodeForMediaUploadException ( $ e ) ; return new HttpException ( $ status_code , $ e -> getMessage ( ) , $ e ) ; } return $ e ; }
Transform a MediaUploadException into an HttpException.

@param  \Exception  $e
@return \Symfony\Component\HttpKernel\Exception\HttpException
Transform a MediaUploadException into an HttpException .