Exception: Smith::UnresolvedTransitionError

Inherits:
WorkflowError show all
Defined in:
lib/smith/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(requested_name, workflow_class, origin_state) ⇒ UnresolvedTransitionError

Returns a new instance of UnresolvedTransitionError.



79
80
81
82
83
84
# File 'lib/smith/errors.rb', line 79

def initialize(requested_name, workflow_class, origin_state)
  @requested_name = requested_name
  @workflow_class = workflow_class
  @origin_state = origin_state
  super("unresolved transition :#{requested_name} in #{workflow_class} from state :#{origin_state}")
end

Instance Attribute Details

#origin_stateObject (readonly)

Returns the value of attribute origin_state.



77
78
79
# File 'lib/smith/errors.rb', line 77

def origin_state
  @origin_state
end

#requested_nameObject (readonly)

Returns the value of attribute requested_name.



77
78
79
# File 'lib/smith/errors.rb', line 77

def requested_name
  @requested_name
end

#workflow_classObject (readonly)

Returns the value of attribute workflow_class.



77
78
79
# File 'lib/smith/errors.rb', line 77

def workflow_class
  @workflow_class
end