Skip to main content

Function: assertErrorCodesInSync()

assertErrorCodesInSync(): void

Defined in: Extensions/ExtensionApiErrors.ts:193

Runtime self-check that every code in EXTENSION_API_ERROR_CODES has a matching constructor in EXTENSION_API_ERROR_CONSTRUCTORS. Called by the smoke test; throws if the two are out of sync (i.e. a code was added but a class wasn't, or vice versa).

Returns

void