Exception: Datadog::Core::Remote::Transport::HTTP::Builder::UnknownApiError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#keyObject (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

#messageObject



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

def message
  "Unknown transport API '#{key}'!"
end