Exception: Datadog::Core::Remote::Transport::HTTP::Builder::UnknownApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Datadog::Core::Remote::Transport::HTTP::Builder::UnknownApiError
- Defined in:
- lib/datadog/core/remote/transport/http/builder.rb
Overview
Raised when the API key does not match known APIs.
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ UnknownApiError
constructor
A new instance of UnknownApiError.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ UnknownApiError
Returns a new instance of UnknownApiError.
160 161 162 163 164 |
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 160 def initialize(key) super() @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
158 159 160 |
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 158 def key @key end |
Instance Method Details
#message ⇒ Object
166 167 168 |
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 166 def "Unknown transport API '#{key}'!" end |