Class: TransportError
Base class for transport-layer errors.
Wraps a transport-specific failure with the TransportType it came from, so callers can branch on transport (USB vs TCP vs BLE) without string-matching error messages.
Extends
Error
Extended by
Constructors
Constructor
ts
new TransportError(message: string, transport: TransportType): TransportError;Parameters
| Parameter | Type |
|---|---|
message | string |
transport | TransportType |
Returns
TransportError
Overrides
ts
Error.constructorProperties
cause?
ts
optional cause?: unknown;Inherited from
ts
Error.causemessage
ts
message: string;Inherited from
ts
Error.messagename
ts
name: string;Inherited from
ts
Error.namestack?
ts
optional stack?: string;Inherited from
ts
Error.stacktransport
ts
readonly transport: TransportType;