Exception: Halcyon::Exceptions::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Halcyon::Exceptions::Base
- Defined in:
- lib/halcyon/exceptions.rb
Overview
– Base Halcyon Exception ++
Instance Attribute Summary collapse
-
#body ⇒ Object
:nodoc:.
-
#status ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(status, body) ⇒ Base
Returns a new instance of Base.
23 24 25 26 27 |
# File 'lib/halcyon/exceptions.rb', line 23 def initialize(status, body) @status = status @body = body super "[#{@status}] #{@body}" end |
Instance Attribute Details
#body ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/halcyon/exceptions.rb', line 22 def body @body end |
#status ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/halcyon/exceptions.rb', line 22 def status @status end |