TX Sheet Control

LicenseError Class

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: LicenseErrorCode): Error & { readonly code: LicenseErrorCode; }
ParameterTypeOptionalDescription
codeLicenseErrorCodeNoValue matching code's declared type and the owning object's validation rules.

Returns: Error & { readonly code: LicenseErrorCode; }.

Members

Properties

PropertyDescription
codeThe 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.

import type { LicenseError } from '@txtextcontrol/tx-sheet-control';

function inspectLicenseErrorCode(licenseError: InstanceType<typeof LicenseError>) {
    const value = licenseError['code'];
    console.log('LicenseError.code', value);
}

See Also