class Statesman::TransitionFailedError

Attributes

from[R]
to[R]

Public Class Methods

new(from, to) click to toggle source
Calls superclass method
# File lib/statesman/exceptions.rb, line 15
def initialize(from, to)
  @from = from
  @to = to
  super(_message)
end

Private Instance Methods

_message() click to toggle source
# File lib/statesman/exceptions.rb, line 25
def _message
  "Cannot transition from '#{from}' to '#{to}'"
end