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:
java.io.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 java.lang.String
messageKey
Message resources keyprivate static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description InvalidAnnotationException(java.lang.String key, java.lang.Object... params)
Constructor with message resource, message paramsInvalidAnnotationException(java.lang.String key, java.lang.Throwable cause, java.lang.Object... params)
Constructor with message resource, message param and cause exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessageKey()
Return message resource key-
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
messageKey
protected java.lang.String messageKey
Message resources key
-
-
Constructor Detail
-
InvalidAnnotationException
public InvalidAnnotationException(java.lang.String key, java.lang.Throwable cause, java.lang.Object... params)
Constructor with message resource, message param and cause exception- Parameters:
key
- message resources keycause
- cause exceptionparams
- parameters
-
InvalidAnnotationException
public InvalidAnnotationException(java.lang.String key, java.lang.Object... params)
Constructor with message resource, message params- Parameters:
key
- message resources keyparams
- parameters to the message
-
-