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.



102
103
104
# File 'lib/datadog/core/transport/http/adapters/net.rb', line 102

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

Instance Attribute Details

#verbObject (readonly)

Returns the value of attribute verb.



100
101
102
# File 'lib/datadog/core/transport/http/adapters/net.rb', line 100

def verb
  @verb
end