Exception: Mongrel2::UnhandledMethodError

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

Overview

An exception class raised from a Mongrel2::Request when the raw request headers contain an unhandled METHOD.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name, *args) ⇒ UnhandledMethodError

Set the method_name that was unhandled.



19
20
21
22
# File 'lib/mongrel2/exceptions.rb', line 19

def initialize( method_name, *args )
  @method_name = method_name
  super( "Unhandled method %p" % [ method_name ], *args )
end

Instance Attribute Details

#method_nameObject (readonly)

The METHOD that was unhandled



25
26
27
# File 'lib/mongrel2/exceptions.rb', line 25

def method_name
  @method_name
end