Exception: Statesman::GuardFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- Statesman::GuardFailedError
- Defined in:
- lib/statesman/exceptions.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to, callback) ⇒ GuardFailedError
constructor
A new instance of GuardFailedError.
Constructor Details
#initialize(from, to, callback) ⇒ GuardFailedError
Returns a new instance of GuardFailedError.
31 32 33 34 35 36 37 |
# File 'lib/statesman/exceptions.rb', line 31 def initialize(from, to, callback) @from = from @to = to @callback = callback super() set_backtrace(callback.source_location.join(":")) if callback&.source_location end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
39 40 41 |
# File 'lib/statesman/exceptions.rb', line 39 def callback @callback end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
39 40 41 |
# File 'lib/statesman/exceptions.rb', line 39 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
39 40 41 |
# File 'lib/statesman/exceptions.rb', line 39 def to @to end |