7.3. Error Handling
Connector reports internal errors in RTI Connext DDS by raising an
rticonnextdds_connector.DDSError()
. This exception may contain a
description of the error.
A subclass, rticonnextdds_connector.TimeoutError()
, indicates that
an operation that can block has timed out.
Other errors may be raised as Error
, TypeError
, or other built-in
Node.js exceptions.
If the on_data_available
event is used to be notified of new data, errors
will be propagated through the error
event. If the error
event is
emitted and the object that emits it has no attached listeners for the
error
event, the program will be terminated with a non-zero error code and
the stack trace will be printed. For more information please refer to the
documentation for the EventEmitter class.
7.3.1. Class reference: DDSError, TimeoutError
7.3.1.1. Error class
- class DDSError(message, extra)
An error originating from the RTI Connext DDS Core
This error is thrown when an error is encountered from within one of the APIs within the RTI Connext DDS Core.
7.3.1.2. TimeoutError class
- class TimeoutError(message, extra)
A timeout error thrown by operations that can block
This error is thrown when blocking errors timeout.