Exception: TflApi::Exceptions::NotFound
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- TflApi::Exceptions::NotFound
- Defined in:
- lib/tfl_api_client/exceptions.rb
Overview
This exception class handles cases where a requested resource is not found on the remote TFL API.
Instance Method Summary collapse
-
#initialize(logger, message = '') ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
#initialize(logger, message = '') ⇒ NotFound
Returns a new instance of NotFound.
65 66 67 68 |
# File 'lib/tfl_api_client/exceptions.rb', line 65 def initialize(logger, = '') = 'Requested resource was not found on the TFL API.' if .nil? || .empty? super(logger, ) end |