Exception: Rubychy::Errors::ServiceUnavailableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rubychy.rb

Overview

Error returned when Rubychy API Service is unavailable

Instance Method Summary collapse

Constructor Details

#initialize(status_code) ⇒ ServiceUnavailableError

Returns a new instance of ServiceUnavailableError.



55
56
57
# File 'lib/rubychy.rb', line 55

def initialize(status_code)
  super("Rubychy API Service unavailable (HTTP error code #{status_code})")
end