Exception: Roby::Aborting

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/roby/standard_errors.rb

Overview

Exception raised when the event loop aborts because of an unhandled exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ Aborting

Returns a new instance of Aborting.



162
163
164
165
# File 'lib/roby/standard_errors.rb', line 162

def initialize(exceptions)
    @all_exceptions = exceptions 
    super("")
end

Instance Attribute Details

#all_exceptionsObject (readonly)

Returns the value of attribute all_exceptions.



161
162
163
# File 'lib/roby/standard_errors.rb', line 161

def all_exceptions
  @all_exceptions
end

Instance Method Details

#backtraceObject

:nodoc:



172
173
174
# File 'lib/roby/standard_errors.rb', line 172

def backtrace # :nodoc:
    [] 
end

#pretty_print(pp) ⇒ Object

:nodoc:



166
167
168
169
170
171
# File 'lib/roby/standard_errors.rb', line 166

def pretty_print(pp) # :nodoc:
    pp.text "control loop aborting because of unhandled exceptions"
    pp.seplist(",") do
        all_exceptions.pretty_print(pp)
    end
end