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

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



159
160
161
162
163
# File 'lib/datadog/core/transport/http/builder.rb', line 159

def initialize(key)
  super()

  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



157
158
159
# File 'lib/datadog/core/transport/http/builder.rb', line 157

def key
  @key
end

Instance Method Details

#messageObject



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

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