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.



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

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



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

def method_name
  @method_name
end