class Roby::ActionStateTransitionFailed
Exception
used when a state transition fails within an action state machine
Attributes
event[R]
The event that caused the transition @return [Event]
from_state[R]
The state that we're transitioning out of @return [Coordination::Task]
to_state[R]
The state that we were transitioning into @return [Coordination::Task]
Public Class Methods
new(root_task, from_state, event, to_state, original_exception)
click to toggle source
Calls superclass method
Roby::LocalizedError::new
# File lib/roby/standard_errors.rb, line 523 def initialize(root_task, from_state, event, to_state, original_exception) super(root_task) @from_state = from_state @event = event @to_state = to_state report_exceptions_from(original_exception) end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/roby/standard_errors.rb, line 531 def pretty_print(pp) pp.text "#{failed_task} failed a state transition" pp.nest(2) do pp.breakable pp.text "from state " pp.nest(2) { from_state.pretty_print(pp) } pp.breakable pp.text "to state " pp.nest(2) { to_state.pretty_print(pp) } pp.breakable pp.text "caused by event " pp.nest(2) { event.pretty_print(pp) } end end