Exception: TflApi::Exceptions::ServiceUnavailable
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- TflApi::Exceptions::ServiceUnavailable
- Defined in:
- lib/tfl_api_client/exceptions.rb
Overview
This exception class handles cases where the Jenkins is getting restarted or reloaded where the response code returned is 503
Instance Method Summary collapse
-
#initialize(logger, message = '') ⇒ ServiceUnavailable
constructor
A new instance of ServiceUnavailable.
Constructor Details
#initialize(logger, message = '') ⇒ ServiceUnavailable
Returns a new instance of ServiceUnavailable.
85 86 87 88 |
# File 'lib/tfl_api_client/exceptions.rb', line 85 def initialize(logger, = '') = 'TFL API is currently unavailable. Please try again.' if .nil? || .empty? super(logger, ) end |