Package org.datanucleus.metadata
Class InvalidMetaDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.exceptions.NucleusUserException
org.datanucleus.exceptions.NucleusFatalUserException
org.datanucleus.metadata.InvalidMetaDataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidClassMetaDataException
,InvalidMemberMetaDataException
Representation of an exception thrown when an error occurs in Meta-Data definition.
All constructors take in a Localiser, a key into the localisation messages, and optional
parameters to use in the construction of the message.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Message resources keyprivate static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInvalidMetaDataException
(String key, Object... params) protected
InvalidMetaDataException
(String key, String message) -
Method Summary
Modifier and TypeMethodDescriptionAccessor for the message key into the localisation system of messages.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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
messageKey
Message resources key
-
-
Constructor Details
-
InvalidMetaDataException
-
InvalidMetaDataException
-
-
Method Details
-
getMessageKey
Accessor for the message key into the localisation system of messages. This is used in tests to validate the correct message is reported.- Returns:
- Message resource key
-