Dex TypeScript SDK 1.35.0
    Preparing search index...

    Interface DexServiceErrorOptions

    Configures construction of a DexServiceError.

    It extends the standard Error options with an optional message. Use it when the message must add call context, such as a Flow ID or Attribute keys, while detail keeps the unchanged service detail.

    const error = new DexServiceError(status.UNAVAILABLE, ErrorSubStatus.UNCATEGORIZED,
    "connection refused", "getAttributes", "order-42",
    { message: "getAttributes Flow order-42: connection refused" });
    interface DexServiceErrorOptions {
        cause?: unknown;
        message?: string;
    }

    Hierarchy

    • ErrorOptions
      • DexServiceErrorOptions
    Index

    Properties

    Properties

    cause?: unknown
    message?: string

    Error message. Defaults to detail when omitted.