protected function error(Request $request, \Exception $exception) {
        return $request->getTarget() . ' threw '
        . get_class($exception) . ': '
        . $exception->getMessage() . "\n"
        . $exception->getTraceAsString();
    }
protected function error(Request $request, \Exception $exception) {
        return $request->getTarget() . ' threw '
        . get_class($exception) . ': '
        . $exception->getMessage() . "\n"
        . $exception->getTraceAsString();
    }
protected function error ( Request $ request , \ Exception $ exception ) { return $ request -> getTarget ( ) . ' threw ' . get_class ( $ exception ) . ': ' . $ exception -> getMessage ( ) . "\n" . $ exception -> getTraceAsString ( ) ; }
Is called if an error is caught while running the delivery

@param Request $request
@param \Exception $exception
@return mixed
Is called if an error is caught while running the delivery