Exception: Datadog::Core::Transport::HTTP::Builder::NoAdapterForApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Datadog::Core::Transport::HTTP::Builder::NoAdapterForApiError
- 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
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ NoAdapterForApiError
constructor
A new instance of NoAdapterForApiError.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ NoAdapterForApiError
Returns a new instance of NoAdapterForApiError.
156 157 158 159 160 |
# File 'lib/datadog/core/transport/http/builder.rb', line 156 def initialize(key) super() @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
154 155 156 |
# File 'lib/datadog/core/transport/http/builder.rb', line 154 def key @key end |
Instance Method Details
#message ⇒ Object
162 163 164 |
# File 'lib/datadog/core/transport/http/builder.rb', line 162 def "No adapter resolved for transport API '#{key}'!" end |