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

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ddtrace/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.



151
152
153
# File 'lib/ddtrace/transport/http/builder.rb', line 151

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



149
150
151
# File 'lib/ddtrace/transport/http/builder.rb', line 149

def key
  @key
end

Instance Method Details

#messageObject



155
156
157
# File 'lib/ddtrace/transport/http/builder.rb', line 155

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