LicenseError Class
Public class for LicenseError.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
ES module import: import { LicenseError } from '@txtextcontrol/tx-sheet-control';.
Constructor
new LicenseError(code)
| Parameter | Type | Optional | Description |
|---|---|---|---|
code | LicenseErrorCode | No | Value matching code's declared type and the owning object's validation rules. |
Returns: Error & { readonly code: LicenseErrorCode; }.
Members
Properties
| Property | Description |
|---|---|
| code | The code value of LicenseError. |
Examples
Pass the LicenseError value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
function inspectLicenseErrorCode(licenseError) {
const value = licenseError['code'];
console.log('LicenseError.code', value);
}