basalt / subscriptions/src / InvalidUsageAmountError
Class: InvalidUsageAmountError
Defined in: subscriptions/src/stores.ts:10
A usage amount that is not a positive safe integer. A negative amount would hand quota back, NaN would poison the counter (NaN + 1 > limit is false forever, so the quota never binds again) and a fraction cannot be stored by the integer counters of the durable stores.
Extends
Constructors
Constructor
> new InvalidUsageAmountError(amount): InvalidUsageAmountError
Defined in: subscriptions/src/stores.ts:12
Parameters
amount
unknown
Returns
InvalidUsageAmountError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).
Inherited from
status
> readonly status: 400 = 400
Defined in: subscriptions/src/stores.ts:11