Exception: Datadog::Core::Transport::HTTP::Builder::UnknownApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Datadog::Core::Transport::HTTP::Builder::UnknownApiError
- Defined in:
- lib/datadog/core/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.
126 127 128 129 130 |
# File 'lib/datadog/core/transport/http/builder.rb', line 126 def initialize(key) super() @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
124 125 126 |
# File 'lib/datadog/core/transport/http/builder.rb', line 124 def key @key end |
Instance Method Details
#message ⇒ Object
132 133 134 |
# File 'lib/datadog/core/transport/http/builder.rb', line 132 def "Unknown transport API '#{key}'!" end |