Exception: Roby::FailedExceptionHandler
- Inherits:
-
CodeError
- Object
- RuntimeError
- ExceptionBase
- LocalizedError
- InternalTaskError
- CodeError
- Roby::FailedExceptionHandler
- Defined in:
- lib/roby/standard_errors.rb
Overview
Raised when an exception handler has raised.
Instance Attribute Summary collapse
-
#handled_exception ⇒ Object
readonly
Returns the value of attribute handled_exception.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Attributes inherited from LocalizedError
#failed_event, #failed_generator, #failed_task, #failure_point
Attributes inherited from ExceptionBase
Instance Method Summary collapse
-
#initialize(error, object, handled_exception, handler) ⇒ FailedExceptionHandler
constructor
A new instance of FailedExceptionHandler.
- #pretty_print(pp) ⇒ Object
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
Methods inherited from ExceptionBase
#each_original_exception, #report_exceptions_from
Methods included from DRoby::V5::ExceptionBaseDumper
Methods included from DRoby::V5::Builtins::ExceptionDumper
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_exception ⇒ Object (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 |
#handler ⇒ Object (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 |