Package org.datanucleus.metadata
Class InvalidAnnotationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- org.datanucleus.metadata.InvalidAnnotationException
-
- All Implemented Interfaces:
Serializable
public class InvalidAnnotationException extends NucleusUserException
Exception thrown when an annotation has been specified that is invalid in the circumstances.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
messageKey
Message resources key
-
Constructor Summary
Constructors Constructor Description InvalidAnnotationException(String key, Object... params)
Constructor with message resource, message paramsInvalidAnnotationException(String key, Throwable cause, Object... params)
Constructor with message resource, message param and cause exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessageKey()
Return message resource key-
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal, setNestedException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Field Detail
-
messageKey
protected String messageKey
Message resources key
-
-
Method Detail
-
getMessageKey
public String getMessageKey()
Return message resource key- Returns:
- Message resource key
-
-