Exception: LaunchDarkly::UnexpectedResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ldclient-rb/requestor.rb

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ UnexpectedResponseError

Returns a new instance of UnexpectedResponseError.



11
12
13
14
# File 'lib/ldclient-rb/requestor.rb', line 11

def initialize(status)
  @status = status
  super("HTTP error #{status}")
end

Instance Method Details

#statusObject



16
17
18
# File 'lib/ldclient-rb/requestor.rb', line 16

def status
  @status
end