Exception: StateMachine::Error

Inherits:
StandardError
  • Object
show all
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)

Instance Method Summary (collapse)

Constructor Details

- (Error) initialize(object, message = nil)

:nodoc:



7
8
9
10
11
# File 'lib/state_machine/error.rb', line 7

def initialize(object, message = nil) #:nodoc:
  @object = object
  
  super(message)
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