Exception: Zoidberg::DeadException

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

Overview

Customized exception type used when instance has been terminated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, origin_id = nil) ⇒ DeadException

Returns a new instance of DeadException.



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

def initialize(message, origin_id=nil)
  super message
  @origin_object_id = origin_id
end

Instance Attribute Details

#origin_object_idObject (readonly)

Returns the value of attribute origin_object_id.



7
8
9
# File 'lib/zoidberg/shell.rb', line 7

def origin_object_id
  @origin_object_id
end