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

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datadog/core/remote/transport/http/builder.rb

Overview

Raised when the identifier cannot be matched to an adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UnknownAdapterError

Returns a new instance of UnknownAdapterError.



175
176
177
178
179
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 175

def initialize(type)
  super()

  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



173
174
175
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 173

def type
  @type
end

Instance Method Details

#messageObject



181
182
183
# File 'lib/datadog/core/remote/transport/http/builder.rb', line 181

def message
  "Unknown transport adapter '#{type}'!"
end