original_string: protected function transformException(Exception $exception)
      {
          if (Request::capture()->wantsJson()) {
              $this->transformAuthException($exception);
              $this->transformEloquentException($exception);
              $this->transformValidationException($exception);
          }
      }
code: protected function transformException(Exception $exception)
      {
          if (Request::capture()->wantsJson()) {
              $this->transformAuthException($exception);
              $this->transformEloquentException($exception);
              $this->transformValidationException($exception);
          }
      }
code_tokens: protected function transformException ( Exception $ exception ) { if ( Request :: capture ( ) -> wantsJson ( ) ) { $ this -> transformAuthException ( $ exception ) ; $ this -> transformEloquentException ( $ exception ) ; $ this -> transformValidationException ( $ exception ) ; } }
docstring: Transform a Laravel exception into an API exception.
  
  @param  Exception $exception
  @return void
docstring_tokens: Transform a Laravel exception into an API exception .