# LicenseCapabilityMissingError Class
Error thrown when a public API method is called for a FeatureId that the current
license entitlement does not grant, or when the license key itself blocks every gated feature
(a missing or invalid key, an expired classic key, or a trial past its grace period); the
message then names the key's state instead. Mirrors gate B's ErrorMessage.LicenseCapability, but
this one guards the API surface itself rather than a formula evaluation, so it
is thrown synchronously instead of surfacing as a cell error.
This list names every method that can throw it - resumeEvaluation is deliberately NOT among
them: it is the sole exit from a suspended engine, so gating it could strand an instance
permanently if the entitlement changes mid-suspension (see the note on HyperFormula. ensureCapability).
see HyperFormula.buildFromArray
see HyperFormula.buildFromSheets
see copy
see cut
see paste
see setCellContents
see addRows
see removeRows
see addColumns
see removeColumns
see moveCells
see moveRows
see moveColumns
see swapRowIndexes
see setRowOrder
see setColumnOrder
see addSheet
see removeSheet
see clearSheet
see setSheetContent
see renameSheet
see undo
see redo
see batch
# Constructors
# constructor
+ new LicenseCapabilityMissingError(feature: FeatureId, blockingState?: LicenseKeyValidityState): LicenseCapabilityMissingError
Defined in src/errors.ts:444 (opens new window)
Parameters:
| Name | Type | Description |
|---|---|---|
feature | FeatureId | the gated feature that was called |
blockingState? | LicenseKeyValidityState | - |
Returns: LicenseCapabilityMissingError
# Properties
# feature Readonly
• feature: FeatureId
Defined in src/errors.ts:444 (opens new window)
The gated feature the call needed.
# message
• message: string
# name
• name: string
# stack Optional
• stack? : undefined | string
# Error Static
▪ Error: ErrorConstructor