Exception: Zoidberg::AbortException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zoidberg/shell.rb

Overview

Customized exception type to wrap allowed errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#original_exceptionObject

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_sObject



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