# ProtectedFunctionError Class

Error thrown when trying to register, override or remove function with reserved id.

see registerFunctionPlugin

see registerFunction

see unregisterFunction

# 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:336 (opens new window)

Parameters:

Name Type
functionId string

Returns: ProtectedFunctionError


# cannotUnregisterFunctionWithId Static

▸ cannotUnregisterFunctionWithId(functionId: string): ProtectedFunctionError

Defined in src/errors.ts:340 (opens new window)

Parameters:

Name Type
functionId string

Returns: ProtectedFunctionError


# cannotUnregisterProtectedPlugin Static

▸ cannotUnregisterProtectedPlugin(): ProtectedFunctionError

Defined in src/errors.ts:344 (opens new window)

Returns: ProtectedFunctionError