Skip to main content
@ai-billing/core
@ai-billing/core / AiBillingDestinationError

Class: AiBillingDestinationError

Defined in: packages/core/src/error/destination-error.ts:10 Error raised when billing data processing fails for a destination.

Extends

Constructors

Constructor

new AiBillingDestinationError(__namedParameters): AiBillingDestinationError
Defined in: packages/core/src/error/destination-error.ts:16

Parameters

__namedParameters
destinationId?
string
message?
string = ...
cause?
unknown

Returns

AiBillingDestinationError

Overrides

AIBillingError.constructor

Properties

cause?

readonly optional cause?: unknown
Defined in: packages/core/src/error/ai-billing-error.ts:8

Inherited from

AIBillingError.cause

destinationId?

readonly optional destinationId?: string
Defined in: packages/core/src/error/destination-error.ts:14 The ID of the destination that failed to process billing data.

name

name: string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

AIBillingError.name

message

message: string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

AIBillingError.message

stack?

optional stack?: string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

AIBillingError.stack

Methods

isInstance()

static isInstance(error): error is AiBillingDestinationError
Defined in: packages/core/src/error/destination-error.ts:29

Parameters

error
unknown

Returns

error is AiBillingDestinationError

Overrides

AIBillingError.isInstance
Last modified on October 29, 2026