MagmaStreamErrorOptions
The options of the MagmaStreamError constructor. The message defaults to the code.
/** The options of a MagmaStreamError. */
export interface MagmaStreamErrorOptions<T = unknown> {
/** The error code. */
code: MagmaStreamErrorCode;
/** The error message. */
message?: string;
/** The error that caused this one. */
cause?: unknown;
/** Data about what failed, for the logs. */
context?: T;
}