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.
detail
const error = new DexServiceError(status.UNAVAILABLE, ErrorSubStatus.UNCATEGORIZED, "connection refused", "getAttributes", "order-42", { message: "getAttributes Flow order-42: connection refused" }); Copy
const error = new DexServiceError(status.UNAVAILABLE, ErrorSubStatus.UNCATEGORIZED, "connection refused", "getAttributes", "order-42", { message: "getAttributes Flow order-42: connection refused" });
Optional
Readonly
Error message. Defaults to detail when omitted.
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
detailkeeps the unchanged service detail.Example