Exception: Zoidberg::AbortException
- Inherits:
-
StandardError
- Object
- StandardError
- Zoidberg::AbortException
- Defined in:
- lib/zoidberg/shell.rb
Overview
Customized exception type to wrap allowed errors
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
Returns the value of attribute original_exception.
Instance Method Summary collapse
Instance Attribute Details
#original_exception ⇒ Object
Returns the value of attribute original_exception.
16 17 18 |
# File 'lib/zoidberg/shell.rb', line 16 def original_exception @original_exception end |
Instance Method Details
#to_s ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/zoidberg/shell.rb', line 18 def to_s if(original_exception) "#{original_exception.class}: #{original_exception}" else super end end |