Exception: TflApi::Exceptions::ServiceUnavailable

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

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, message = '')
  message = 'TFL API is currently unavailable. Please try again.' if message.nil? || message.empty?
  super(logger, message)
end