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

Class: AiBillingCostError

Defined in: packages/core/src/error/cost-error.ts:8 Error thrown when a cost conversion or calculation fails.

Extends

Constructors

Constructor

new AiBillingCostError(__namedParameters): AiBillingCostError
Defined in: packages/core/src/error/cost-error.ts:11

Parameters

__namedParameters
message
string
cause?
unknown

Returns

AiBillingCostError

Overrides

AIBillingError.constructor

Properties

cause?

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

Inherited from

AIBillingError.cause

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 AiBillingCostError
Defined in: packages/core/src/error/cost-error.ts:15

Parameters

error
unknown

Returns

error is AiBillingCostError

Overrides

AIBillingError.isInstance
Last modified on October 29, 2026