Exception: Roby::FailedExceptionHandler

Inherits:
CodeError show all
Defined in:
lib/roby/standard_errors.rb

Overview

Raised when an exception handler has raised.

Instance Attribute Summary collapse

Attributes inherited from LocalizedError

#failed_event, #failed_generator, #failed_task, #failure_point

Attributes inherited from ExceptionBase

#original_exceptions

Instance Method Summary collapse

Methods inherited from CodeError

#error, match, #original_exception

Methods inherited from LocalizedError

#fatal?, #involved_plan_object?, match, #propagated?, #to_execution_exception, to_execution_exception_matcher

Methods included from DRoby::V5::LocalizedErrorDumper

#droby_dump

Methods inherited from ExceptionBase

#each_original_exception, #report_exceptions_from

Methods included from DRoby::V5::ExceptionBaseDumper

#droby_dump

Methods included from DRoby::V5::Builtins::ExceptionDumper

#droby_dump

Constructor Details

#initialize(error, object, handled_exception, handler) ⇒ FailedExceptionHandler

Returns a new instance of FailedExceptionHandler.



420
421
422
423
424
# File 'lib/roby/standard_errors.rb', line 420

def initialize(error, object, handled_exception, handler)
    super(error, object)
    @handled_exception = handled_exception
    @handler = handler
end

Instance Attribute Details

#handled_exceptionObject (readonly)

Returns the value of attribute handled_exception.



418
419
420
# File 'lib/roby/standard_errors.rb', line 418

def handled_exception
  @handled_exception
end

#handlerObject (readonly)

Returns the value of attribute handler.



418
419
420
# File 'lib/roby/standard_errors.rb', line 418

def handler
  @handler
end

Instance Method Details

#pretty_print(pp) ⇒ Object



426
427
428
429
430
# File 'lib/roby/standard_errors.rb', line 426

def pretty_print(pp)
    pp.text "exception handler #{handler} failed while processing"
    pp.breakable
    handled_exception.pretty_print(pp)
end