Exception: MiscHacks::ChildError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- MiscHacks::ChildError
- Defined in:
- lib/mischacks.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ ChildError
constructor
A new instance of ChildError.
Constructor Details
#initialize(status) ⇒ ChildError
Returns a new instance of ChildError.
25 26 27 28 |
# File 'lib/mischacks.rb', line 25 def initialize status @status = Integer status super "Child failed with status #{status}" end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
23 24 25 |
# File 'lib/mischacks.rb', line 23 def status @status end |