Exception: OpenTox::Error
- Inherits:
-
RuntimeError
- Object
- Exception
- RuntimeError
- OpenTox::Error
- Includes:
- OpenToxError
- Defined in:
- lib/error.rb
Instance Attribute Summary
Attributes included from OpenToxError
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ Error
constructor
A new instance of Error.
Methods included from OpenToxError
Constructor Details
#initialize(code, message = nil) ⇒ Error
Returns a new instance of Error.
44 45 46 47 |
# File 'lib/error.rb', line 44 def initialize(code, =nil) @http_code = code super end |