Exception: MonkeyBusiness::HttpMethodError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/exceptions.rb

Overview

Raise this error for unsupported HTTP methods

Instance Method Summary collapse

Constructor Details

#initialize(method_name) ⇒ HttpMethodError

Returns a new instance of HttpMethodError.



9
10
11
# File 'lib/exceptions.rb', line 9

def initialize(method_name)
  super("Unsupported HTTP method: #{method_name}")
end