Package com.dianxin.tori.api.exceptions
Class MissingAnnotationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.dianxin.tori.api.exceptions.MissingAnnotationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMissingAnnotationException(Class<?> annotationClazz, Class<?> targetClazz) Constructs a newMissingAnnotationException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingAnnotationException
Constructs a newMissingAnnotationException.- Parameters:
annotationClazz- The class of the annotation that is missing.targetClazz- The class that was expected to have the annotation.
-