Package org.hibernate
Class InvalidMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.MappingException
org.hibernate.InvalidMappingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidMappingException
Thrown when a mapping is found to be invalid.
Similar to MappingException
, but contains more information
about the path and type of mapping (e.g. file, resource or URL).
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidMappingException
(String customMessage, String type, String path) Constructs anInvalidMappingException
using the given information.InvalidMappingException
(String customMessage, String type, String path, Throwable cause) Constructs an InvalidMappingException using the given information.InvalidMappingException
(String customMessage, Origin origin) Constructs anInvalidMappingException
using the given information. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidMappingException
Constructs an InvalidMappingException using the given information.- Parameters:
customMessage
- The custom message explaining the exception conditiontype
- The type of invalid mapping documentpath
- The path (type specific) of the invalid mapping documentcause
- The underlying cause
-
InvalidMappingException
Constructs anInvalidMappingException
using the given information.- Parameters:
customMessage
- The custom message explaining the exception conditiontype
- The type of invalid mapping documentpath
- The path (type specific) of the invalid mapping document
-
InvalidMappingException
Constructs anInvalidMappingException
using the given information.- Parameters:
customMessage
- The custom message explaining the exception conditionorigin
- The origin of the invalid mapping document
-
-
Method Details
-
getType
-
getPath
-