Exception: Mongrel2::ControlError

Inherits:
Exception
  • Object
show all
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

Instance Method Summary collapse

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, message )
	@code = code.to_sym
	super( message )
end

Instance Attribute Details

#codeObject (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