Exception: Mongrel2::ControlError
- Defined in:
- lib/mongrel2/exceptions.rb
Overview
An exception type raised by Mongrel2::Control requests if they result in an error response.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
The code of the particular kind of control error (a Symbol).
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ControlError
constructor
Set the error
code
in addition to themessage
.
Constructor Details
#initialize(code, message) ⇒ ControlError
Set the error code
in addition to the message
.
47 48 49 50 |
# File 'lib/mongrel2/exceptions.rb', line 47 def initialize( code, ) @code = code.to_sym super( ) end |
Instance Attribute Details
#code ⇒ Object (readonly)
The code of the particular kind of control error (a Symbol)
53 54 55 |
# File 'lib/mongrel2/exceptions.rb', line 53 def code @code end |