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

Class: AIBillingError

Defined in: packages/core/src/error/ai-billing-error.ts:5 Base error type for all ai-billing package errors.

Extends

  • Error

Extended by

Constructors

Constructor

new AIBillingError(__namedParameters): AIBillingError
Defined in: packages/core/src/error/ai-billing-error.ts:10

Parameters

__namedParameters
name
string
message
string
cause?
unknown

Returns

AIBillingError

Overrides

Error.constructor

Properties

cause?

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

Overrides

Error.cause

name

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

Inherited from

Error.name

message

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

Inherited from

Error.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

Error.stack

Methods

isInstance()

static isInstance(error): error is AIBillingError
Defined in: packages/core/src/error/ai-billing-error.ts:24

Parameters

error
unknown

Returns

error is AIBillingError
Last modified on October 29, 2026