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.



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

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

#messageObject



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

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