# ProtectedFunctionError Class
Error thrown when trying to register, override or remove function with reserved id.
see registerFunction
# Properties
# message
• message: string
# name
• name: string
# stack Optional
• stack? : undefined | string
# Error Static
▪ Error: ErrorConstructor
# Methods
# cannotRegisterFunctionWithId Static
▸ cannotRegisterFunctionWithId(functionId: string): ProtectedFunctionError
Defined in src/errors.ts:334 (opens new window)
Parameters:
| Name | Type |
|---|---|
functionId | string |
Returns: ProtectedFunctionError
# cannotUnregisterFunctionWithId Static
▸ cannotUnregisterFunctionWithId(functionId: string): ProtectedFunctionError
Defined in src/errors.ts:338 (opens new window)
Parameters:
| Name | Type |
|---|---|
functionId | string |
Returns: ProtectedFunctionError
# cannotUnregisterProtectedPlugin Static
▸ cannotUnregisterProtectedPlugin(): ProtectedFunctionError
Defined in src/errors.ts:342 (opens new window)
Returns: ProtectedFunctionError