Exception: StateMachines::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/state_machines/error.rb

Overview

An error occurred during a state machine invocation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, message = nil) ⇒ Error

:nodoc:



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

def initialize(object, message = nil) #:nodoc:
  @object = object

  super(message)
end

Instance Attribute Details

#objectObject (readonly)

The object that failed



5
6
7
# File 'lib/state_machines/error.rb', line 5

def object
  @object
end