Variable: EXTENSION_API_ERROR_CONSTRUCTORS
constEXTENSION_API_ERROR_CONSTRUCTORS:Record<ExtensionApiErrorCode, (message,data?) =>ExtensionApiError>
Defined in: Extensions/ExtensionApiErrors.ts:147
Map from stable code to constructor. The worker runtime uses this to
re-raise an error received over RPC as the matching subclass — so
extension code that does try { ... } catch (e) { if (e instanceof PermissionDeniedError) ... } works.
Codes that arrive without a matching entry fall back to plain
ExtensionApiError.