Exception: Newflow::InvalidWorkflowStateError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Newflow::InvalidWorkflowStateError
- Defined in:
- lib/newflow.rb
Instance Method Summary collapse
-
#initialize(state) ⇒ InvalidWorkflowStateError
constructor
A new instance of InvalidWorkflowStateError.
- #message ⇒ Object
Constructor Details
#initialize(state) ⇒ InvalidWorkflowStateError
Returns a new instance of InvalidWorkflowStateError.
12 13 14 |
# File 'lib/newflow.rb', line 12 def initialize(state) @state = state end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/newflow.rb', line 16 def "'#{@state}' is not a valid state" end |