Package org.hibernate
Class AnnotationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannotForceNonNullableException
,RecoverableException
public class AnnotationException extends MappingException
An exception that occurs while reading mapping annotations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnnotationException(String msg)
Constructs anAnnotationException
using the given message.AnnotationException(String msg, Throwable cause)
Constructs anAnnotationException
using the given message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AnnotationException
public AnnotationException(String msg, Throwable cause)
Constructs anAnnotationException
using the given message and cause.- Parameters:
msg
- The message explaining the reason for the exception.cause
- The underlying cause.
-
AnnotationException
public AnnotationException(String msg)
Constructs anAnnotationException
using the given message.- Parameters:
msg
- The message explaining the reason for the exception.
-
-