Exception: StateMachine::Error
- Inherits:
-
StandardError
- Object
- StandardError
- StateMachine::Error
- Defined in:
- lib/state_machine/error.rb
Overview
An error occurred during a state machine invocation
Direct Known Subclasses
IntegrationNotFound, 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_machine/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_machine/error.rb', line 5 def object @object end |