Skip to main content

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.
Example:

HookTargetNotDefinedError

Thrown when a hook references a target method that is not defined on the class.
Example: