Exception: TflApi::Exceptions::Unauthorized
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- TflApi::Exceptions::Unauthorized
- Defined in:
- lib/tfl_api_client/exceptions.rb
Overview
This exception class handles cases where invalid credentials are provided to connect to the TFL API.
Instance Method Summary collapse
-
#initialize(logger, message = '') ⇒ Unauthorized
constructor
A new instance of Unauthorized.
Constructor Details
#initialize(logger, message = '') ⇒ Unauthorized
Returns a new instance of Unauthorized.
44 45 46 47 |
# File 'lib/tfl_api_client/exceptions.rb', line 44 def initialize(logger, = '') = 'Access denied. Please ensure you have valid TFL credentials.' if .nil? || .empty? super(logger, ) end |