@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(Defined in: packages/core/src/error/cost-error.ts:11__namedParameters):AiBillingCostError
Parameters
__namedParameters
message
string
cause?
unknown
Returns
AiBillingCostError
Overrides
AIBillingError.constructor
Properties
cause?
Defined in: packages/core/src/error/ai-billing-error.ts:8readonlyoptionalcause?:unknown
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?
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078optionalstack?:string
Inherited from
AIBillingError.stack
Methods
isInstance()
Defined in: packages/core/src/error/cost-error.ts:15staticisInstance(error):error is AiBillingCostError
Parameters
error
unknown
Returns
error is AiBillingCostError
Overrides
AIBillingError.isInstance