Exception: LaunchDarkly::Impl::DataSource::UnexpectedResponseError Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 5.5.0

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ UnexpectedResponseError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UnexpectedResponseError.

Since:

  • 5.5.0



13
14
15
16
# File 'lib/ldclient-rb/impl/data_source/requestor.rb', line 13

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

Instance Method Details

#statusObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 5.5.0



18
19
20
# File 'lib/ldclient-rb/impl/data_source/requestor.rb', line 18

def status
  @status
end