Overview
Decorator errors are thrown during class decoration when metadata validation fails or when hook targets reference methods that don’t exist. Both are internal errors that indicate a developer configuration issue.Error Reference
InvalidDecoratorMetadataError
Thrown when a decorator (e.g.,@App, @Plugin, @FrontMcp) receives invalid metadata for a specific field.
| Property | Type | Value |
|---|---|---|
code | string | INVALID_DECORATOR_METADATA |
statusCode | number | 500 |
isPublic | boolean | false |
HookTargetNotDefinedError
Thrown when a hook references a target method that is not defined on the class.| Property | Type | Value |
|---|---|---|
code | string | HOOK_TARGET_NOT_DEFINED |
statusCode | number | 500 |
isPublic | boolean | false |