Exception: StateMachines::Error
- Inherits:
-
StandardError
- Object
- StandardError
- StateMachines::Error
- Defined in:
- lib/state_machines/error.rb
Overview
An error occurred during a state machine invocation
Direct Known Subclasses
IntegrationNotFound, InvalidContext, InvalidEvent, InvalidParallelTransition, InvalidTransition
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
The object that failed.
Instance Method Summary collapse
-
#initialize(object, message = nil) ⇒ Error
constructor
:nodoc:.
Constructor Details
#initialize(object, message = nil) ⇒ Error
:nodoc:
7 8 9 10 11 |
# File 'lib/state_machines/error.rb', line 7 def initialize(object, = nil) #:nodoc: @object = object super() end |
Instance Attribute Details
#object ⇒ Object (readonly)
The object that failed
5 6 7 |
# File 'lib/state_machines/error.rb', line 5 def object @object end |