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:
9 10 11 12 13 |
# File 'lib/state_machines/error.rb', line 9 def initialize(object, = nil) #:nodoc: @object = object super() end |
Instance Attribute Details
#object ⇒ Object (readonly)
The object that failed
7 8 9 |
# File 'lib/state_machines/error.rb', line 7 def object @object end |