Exception: Roby::EmissionFailed
- Inherits:
-
CodeError
- Object
- RuntimeError
- ExceptionBase
- LocalizedError
- InternalTaskError
- CodeError
- Roby::EmissionFailed
- Defined in:
- lib/roby/standard_errors.rb
Overview
Raised when the emission of an event has failed. See EventGenerator#emit_failed.
Instance Attribute Summary
Attributes inherited from LocalizedError
#failed_event, #failed_generator, #failed_task, #failure_point
Attributes inherited from ExceptionBase
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ EmissionFailed
constructor
A new instance of EmissionFailed.
-
#pretty_print(pp) ⇒ Object
:nodoc:.
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(*args, &block) ⇒ EmissionFailed
Returns a new instance of EmissionFailed.
389 390 391 392 393 394 395 |
# File 'lib/roby/standard_errors.rb', line 389 def initialize(*args, &block) super unless failed_generator raise ArgumentError, "creating an EmissionFailed error without a generator" end end |
Instance Method Details
#pretty_print(pp) ⇒ Object
:nodoc:
397 398 399 400 401 |
# File 'lib/roby/standard_errors.rb', line 397 def pretty_print(pp) # :nodoc: pp.text "failed emission of the " failed_generator.pretty_print(pp) pp.text " (#{self.class})" end |