Exception: Smith::UnresolvedTransitionError
- Inherits:
-
WorkflowError
- Object
- StandardError
- Error
- WorkflowError
- Smith::UnresolvedTransitionError
- Defined in:
- lib/smith/errors.rb
Instance Attribute Summary collapse
-
#origin_state ⇒ Object
readonly
Returns the value of attribute origin_state.
-
#requested_name ⇒ Object
readonly
Returns the value of attribute requested_name.
-
#workflow_class ⇒ Object
readonly
Returns the value of attribute workflow_class.
Instance Method Summary collapse
-
#initialize(requested_name, workflow_class, origin_state) ⇒ UnresolvedTransitionError
constructor
A new instance of UnresolvedTransitionError.
Constructor Details
#initialize(requested_name, workflow_class, origin_state) ⇒ UnresolvedTransitionError
Returns a new instance of UnresolvedTransitionError.
79 80 81 82 83 84 |
# File 'lib/smith/errors.rb', line 79 def initialize(requested_name, workflow_class, origin_state) @requested_name = requested_name @workflow_class = workflow_class @origin_state = origin_state super("unresolved transition :#{requested_name} in #{workflow_class} from state :#{origin_state}") end |
Instance Attribute Details
#origin_state ⇒ Object (readonly)
Returns the value of attribute origin_state.
77 78 79 |
# File 'lib/smith/errors.rb', line 77 def origin_state @origin_state end |
#requested_name ⇒ Object (readonly)
Returns the value of attribute requested_name.
77 78 79 |
# File 'lib/smith/errors.rb', line 77 def requested_name @requested_name end |
#workflow_class ⇒ Object (readonly)
Returns the value of attribute workflow_class.
77 78 79 |
# File 'lib/smith/errors.rb', line 77 def workflow_class @workflow_class end |