Exception: TflApi::Exceptions::NotFound

Inherits:
ApiException
  • Object
show all
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

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, message = '')
  message = 'Requested resource was not found on the TFL API.' if message.nil? || message.empty?
  super(logger, message)
end