nexus-rpc
    Preparing search index...

    Interface HandlerErrorOptionsExperimental

    Options for constructing a HandlerError.

    interface HandlerErrorOptions {
        cause?: unknown;
        originalFailure?: Failure;
        rawErrorType?: string;
        retryableOverride?: boolean;
        stackTrace?: string;
    }
    Index

    Properties

    cause?: unknown

    Underlying cause of the error.

    originalFailure?: Failure

    An optional Failure object from which this error was constructed.

    Preserves the original failure for round-tripping through the wire format.

    rawErrorType?: string

    The original error type string, preserving the raw wire value.

    For known types, this option is ignored. When the error's type is set to "UNKNOWN", this option is used to preserve the original wire string.

    retryableOverride?: boolean

    Whether this error should be considered retryable.

    If not set, the retry behavior is determined from the error type. For example, by default, INTERNAL is retryable, but UNAVAILABLE is non-retryable.

    stackTrace?: string

    An optional stack trace string associated with this error.

    When provided, this overrides the native stack property on the error. This is typically used for remote stack traces received over the wire, which may originate from a different language runtime.