Exception: Statesman::TransitionFailedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/statesman/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ TransitionFailedError

Returns a new instance of TransitionFailedError.



11
12
13
14
15
# File 'lib/statesman/exceptions.rb', line 11

def initialize(from, to)
  @from = from
  @to = to
  super(_message)
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



17
18
19
# File 'lib/statesman/exceptions.rb', line 17

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



17
18
19
# File 'lib/statesman/exceptions.rb', line 17

def to
  @to
end