Exception: Datadog::Core::Transport::HTTP::Builder::NoAdapterForApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datadog/core/transport/http/builder.rb

Overview

Raised when an adapter cannot be resolved for an API instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ NoAdapterForApiError

Returns a new instance of NoAdapterForApiError.



160
161
162
163
164
# File 'lib/datadog/core/transport/http/builder.rb', line 160

def initialize(key)
  super()

  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



158
159
160
# File 'lib/datadog/core/transport/http/builder.rb', line 158

def key
  @key
end

Instance Method Details

#messageObject



166
167
168
# File 'lib/datadog/core/transport/http/builder.rb', line 166

def message
  "No adapter resolved for transport API '#{key}'!"
end