Class: MllpConnectionError
Thrown (or emitted via onError) for socket-layer problems such as
connection refused, ECONNRESET, ETIMEDOUT, or DNS failure.
cause, the original OS or TLS errorphase, which connection lifecycle phase the failure occurred inconnectionCause, optional stable cause-code (e.g. for FIFO reconnect rejections)
Example
throw new MllpConnectionError('Connection refused', {
cause: osError,
phase: 'connect',
});
Extends
Error
Constructors
Constructor
new MllpConnectionError(
message,opts):MllpConnectionError
Construct an MLLP connection error.
Parameters
message
string
Human-readable error message.
opts
Error context (underlying cause, the lifecycle phase, optional stable cause code).
cause
Error
connectionCause?
phase
Returns
MllpConnectionError
Overrides
Error.constructor
Properties
cause
readonlycause:Error
The original OS or TLS error that caused this connection failure.
Overrides
Error.cause
connectionCause?
readonlyoptionalconnectionCause?:ConnectionErrorCause
Optional stable cause code. Present on FIFO reconnect rejections
('fifo-unsafe' for queued sends, 'in-flight-orphan' for in-flight sends).
The set of values is a public API; see ConnectionErrorCause.
name
readonlyname:"MllpConnectionError"
Overrides
Error.name
phase
readonlyphase:ConnectionErrorPhase
Which connection lifecycle phase the failure occurred in.