Exception: Zoidberg::Supervise::AbortException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zoidberg/supervise.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.



8
9
10
# File 'lib/zoidberg/supervise.rb', line 8

def original_exception
  @original_exception
end

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
# File 'lib/zoidberg/supervise.rb', line 10

def to_s
  if(original_exception)
    "#{original_exception.class}: #{original_exception}"
  else
    super
  end
end