class Roby::Coordination::Models::UnreachableStateUsed
Exception
raised in state machine definitions when a state is used in a transition, that cannot be reached in the first place
Attributes
states[R]
The set of unreachable states
Public Class Methods
new(states)
click to toggle source
# File lib/roby/coordination/models/exceptions.rb, line 17 def initialize(states) @states = states end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/roby/coordination/models/exceptions.rb, line 21 def pretty_print(pp) pp.text "#{states.size} states are unreachable but used in transitions anyways" pp.nest(2) do pp.seplist(states) do |s| pp.breakable s.pretty_print(pp) end end end