Exception: Mongrel2::UnhandledMethodError
- 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
-
#method_name ⇒ Object
readonly
The METHOD that was unhandled.
Instance Method Summary collapse
-
#initialize(method_name, *args) ⇒ UnhandledMethodError
constructor
Set the
method_name
that was unhandled.
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_name ⇒ Object (readonly)
The METHOD that was unhandled
25 26 27 |
# File 'lib/mongrel2/exceptions.rb', line 25 def method_name @method_name end |