Exception: Datadog::Core::Transport::HTTP::Adapters::Net::UnknownHTTPMethod

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

Overview

Raised when called with an unknown HTTP method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ UnknownHTTPMethod

Returns a new instance of UnknownHTTPMethod.



93
94
95
# File 'lib/datadog/core/transport/http/adapters/net.rb', line 93

def initialize(verb)
  super("No matching Net::HTTP function for '#{verb}'!")
end

Instance Attribute Details

#verbObject (readonly)

Returns the value of attribute verb.



91
92
93
# File 'lib/datadog/core/transport/http/adapters/net.rb', line 91

def verb
  @verb
end