kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface ErrorContext

    Error context for structured error creation. Provides machine-readable error codes with optional cause, request, and response attachments.

    interface ErrorContext {
        code: string;
        message: string;
        cause?: unknown;
        request?: unknown;
        response?: unknown;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    code: string

    Machine-readable error code (e.g. "ENETWORK", "EVALIDATION").

    message: string

    Human-readable error description.

    cause?: unknown

    The original error that caused this error, if any.

    request?: unknown

    The request that triggered the error, if applicable.

    response?: unknown

    The response that produced the error, if applicable.