Class: ExtensionApiError
Defined in: Extensions/ExtensionApiErrors.ts:27
Base class for every error the extension API surfaces. The code property
is the wire-stable identifier; extensions should branch on it rather than
on instanceof because host and worker have separate class identities.
Extends
Error
Extended by
PermissionDeniedErrorNetworkHostNotAllowedErrorResponseTooLargeErrorQuotaExceededErrorApiExportNotFoundErrorProviderNotRegisteredErrorRpcProtocolErrorRpcTimeoutErrorRpcCancelledErrorExtensionNotActiveErrorSettingRequiredErrorIncompatibleApiVersionErrorMethodRemovedError
Constructors
Constructor
new ExtensionApiError(
code,message,data?):ExtensionApiError
Defined in: Extensions/ExtensionApiErrors.ts:32
Parameters
code
"PermissionDeniedError" | "NetworkHostNotAllowedError" | "ResponseTooLargeError" | "QuotaExceededError" | "ApiExportNotFoundError" | "ProviderNotRegisteredError" | "RpcProtocolError" | "RpcTimeoutError" | "RpcCancelledError" | "ExtensionNotActiveError" | "SettingRequiredError" | "IncompatibleApiVersionError" | "MethodRemovedError"
message
string
data?
unknown
Returns
ExtensionApiError
Overrides
Error.constructor
Properties
code
readonlycode:"PermissionDeniedError"|"NetworkHostNotAllowedError"|"ResponseTooLargeError"|"QuotaExceededError"|"ApiExportNotFoundError"|"ProviderNotRegisteredError"|"RpcProtocolError"|"RpcTimeoutError"|"RpcCancelledError"|"ExtensionNotActiveError"|"SettingRequiredError"|"IncompatibleApiVersionError"|"MethodRemovedError"
Defined in: Extensions/ExtensionApiErrors.ts:28
data?
readonlyoptionaldata?:unknown
Defined in: Extensions/ExtensionApiErrors.ts:30
Optional structured detail attached to the error.