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.



130
131
132
133
134
# File 'lib/datadog/core/transport/http/builder.rb', line 130

def initialize(key)
  super()

  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



128
129
130
# File 'lib/datadog/core/transport/http/builder.rb', line 128

def key
  @key
end

Instance Method Details

#messageObject



136
137
138
# File 'lib/datadog/core/transport/http/builder.rb', line 136

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