Class: RclNodeError

RclNodeError(message, optionsopt)

Base error class for all rclnodejs errors. Provides structured error information with context.

Constructor

new RclNodeError(message, optionsopt)

Parameters:
Name Type Attributes Description
message string Human-readable error message
options object <optional>
Additional error context
Properties
Name Type Attributes Description
code string <optional>
Machine-readable error code (e.g., 'TIMEOUT', 'INVALID_ARGUMENT')
nodeName string <optional>
Name of the node where error occurred
entityType string <optional>
Type of entity (publisher, subscription, client, etc.)
entityName string <optional>
Name of the entity (topic name, service name, etc.)
cause Error <optional>
Original error that caused this error
details any <optional>
Additional error-specific details
Source:

Methods

toJSON() → {object}

Returns a detailed error object for logging/serialization
Source:
Returns:
Structured error information
Type
object

toString() → {string}

Returns a user-friendly error description
Source:
Returns:
Formatted error string
Type
string