Exception: Rjq::BreakSignal

Inherits:
RuntimeError show all
Defined in:
lib/rjq/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RuntimeError

#prepend_outputs, #take_outputs

Constructor Details

#initialize(label, value = nil, outputs: nil) ⇒ BreakSignal

Returns a new instance of BreakSignal.



69
70
71
72
73
74
# File 'lib/rjq/errors.rb', line 69

def initialize(label, value = nil, outputs: nil)
  @label = label
  @value = value
  @outputs = outputs
  super("break #{label}")
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



67
68
69
# File 'lib/rjq/errors.rb', line 67

def label
  @label
end

#outputsObject (readonly)

Returns the value of attribute outputs.



67
68
69
# File 'lib/rjq/errors.rb', line 67

def outputs
  @outputs
end

#valueObject (readonly)

Returns the value of attribute value.



67
68
69
# File 'lib/rjq/errors.rb', line 67

def value
  @value
end