Type alias BaseError<T>

BaseError<T>: {
    cause?: Error | unknown;
    details?: unknown;
    message?: string;
    type: T;
}

Base error type used for all sdk error responses

Type Parameters

  • T = string

    the error type

Type declaration

  • Optional Readonly cause?: Error | unknown

    Information about underlying root cause

  • Optional Readonly details?: unknown

    Additional details

  • Optional Readonly message?: string

    Message containing error description

  • Readonly type: T

    Error type

Generated using TypeDoc