Exception: Statesman::GuardFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- Statesman::GuardFailedError
- Defined in:
- lib/statesman/exceptions.rb
Instance Attribute Summary collapse
-
#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) ⇒ GuardFailedError
constructor
A new instance of GuardFailedError.
- #message ⇒ Object
Constructor Details
#initialize(from, to) ⇒ GuardFailedError
Returns a new instance of GuardFailedError.
22 23 24 25 |
# File 'lib/statesman/exceptions.rb', line 22 def initialize(from, to) @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
27 28 29 |
# File 'lib/statesman/exceptions.rb', line 27 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
27 28 29 |
# File 'lib/statesman/exceptions.rb', line 27 def to @to end |
Instance Method Details
#message ⇒ Object
29 30 31 |
# File 'lib/statesman/exceptions.rb', line 29 def "Guard on transition from: '#{from}' to '#{to}' returned false" end |