Exception: Dizby::UnknownObjectError

Inherits:
DistributedError show all
Defined in:
lib/dizby/distributed/unknown.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unknown) ⇒ UnknownObjectError

Returns a new instance of UnknownObjectError.


41
42
43
44
# File 'lib/dizby/distributed/unknown.rb', line 41

def initialize(unknown)
  @unknown = unknown
  super unknown.name
end

Instance Attribute Details

#unknown (readonly)

give access to the UnknownObject class


47
48
49
# File 'lib/dizby/distributed/unknown.rb', line 47

def unknown
  @unknown
end

Class Method Details

._load(str)


49
50
51
# File 'lib/dizby/distributed/unknown.rb', line 49

def self._load(str)
  Marshal.load(str)
end

Instance Method Details

#_dump(_)


53
54
55
# File 'lib/dizby/distributed/unknown.rb', line 53

def _dump(_)
  Marshal.dump(@unknown)
end