original_string: protected function handleErrorResponse(Response $response)
      {
          $exception = $response->exception;
  
          $error = new MessageBag([
              'type'    => get_class($exception),
              'message' => $exception->getMessage(),
              'file'    => $exception->getFile(),
              'line'    => $exception->getLine(),
          ]);
  
          return back()->withInput()->withErrors($error, 'exception');
      }
code: protected function handleErrorResponse(Response $response)
      {
          $exception = $response->exception;
  
          $error = new MessageBag([
              'type'    => get_class($exception),
              'message' => $exception->getMessage(),
              'file'    => $exception->getFile(),
              'line'    => $exception->getLine(),
          ]);
  
          return back()->withInput()->withErrors($error, 'exception');
      }
code_tokens: protected function handleErrorResponse ( Response $ response ) { $ exception = $ response -> exception ; $ error = new MessageBag ( [ 'type' => get_class ( $ exception ) , 'message' => $ exception -> getMessage ( ) , 'file' => $ exception -> getFile ( ) , 'line' => $ exception -> getLine ( ) , ] ) ; return back ( ) -> withInput ( ) -> withErrors ( $ error , 'exception' ) ; }
docstring: Handle Response with exceptions.
  
  @param Response $response
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Handle Response with exceptions .