Class MissingAnnotationException

All Implemented Interfaces:
Serializable

public class MissingAnnotationException extends IllegalStateException
An exception thrown to indicate that a required annotation is missing on a specific class. This is typically thrown during the command registration phase if a modern command class forgets to declare its metadata via annotations.
See Also:
  • Constructor Details

    • MissingAnnotationException

      public MissingAnnotationException(Class<?> annotationClazz, Class<?> targetClazz)
      Constructs a new MissingAnnotationException.
      Parameters:
      annotationClazz - The class of the annotation that is missing.
      targetClazz - The class that was expected to have the annotation.