Class: LightIO::Core::Beam::BeamError

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/lightio/core/beam.rb

Overview

special class for simulate Thread#raise for Beam

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ BeamError

Returns a new instance of BeamError.



29
30
31
32
# File 'lib/lightio/core/beam.rb', line 29

def initialize(error)
  @error = error
  @parent = Beam.current
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



24
25
26
# File 'lib/lightio/core/beam.rb', line 24

def error
  @error
end

#parentObject (readonly)

Returns the value of attribute parent.



24
25
26
# File 'lib/lightio/core/beam.rb', line 24

def parent
  @parent
end