Package org.hibernate
Class MappingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.MappingException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AnnotationException
,DuplicateMappingException
,InvalidMappingException
,MappingException
,MappingNotFoundException
,NotYetImplementedException
,PropertyNotFoundException
,UnknownEntityTypeException
,UnknownSqlResultSetMappingException
public class MappingException extends HibernateException
An exception that occurs while reading mapping sources (xml/annotations),usually as a result of something screwy in the O-R mappings.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MappingException(java.lang.String message)
Constructs a MappingException using the given information.MappingException(java.lang.String message, java.lang.Throwable cause)
Constructs a MappingException using the given information.MappingException(java.lang.Throwable cause)
Constructs a MappingException using the given information.
-
-
-
Constructor Detail
-
MappingException
public MappingException(java.lang.String message, java.lang.Throwable cause)
Constructs a MappingException using the given information.- Parameters:
message
- A message explaining the exception conditioncause
- The underlying cause
-
MappingException
public MappingException(java.lang.Throwable cause)
Constructs a MappingException using the given information.- Parameters:
cause
- The underlying cause
-
MappingException
public MappingException(java.lang.String message)
Constructs a MappingException using the given information.- Parameters:
message
- A message explaining the exception condition
-
-