public class InvalidMappingException extends MappingException
Thrown when a mapping is found to be invalid.
Similar to MappingException, but this contains more info about the path and type of mapping (e.g. file, resource or url)
| Constructor and Description |
|---|
InvalidMappingException(String customMessage,
Origin origin)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String customMessage,
org.hibernate.internal.util.xml.Origin origin)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String customMessage,
org.hibernate.internal.util.xml.Origin origin,
Exception cause)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String type,
String path)
Constructs an InvalidMappingException using the given information and a standard message.
|
InvalidMappingException(String customMessage,
String type,
String path)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String customMessage,
String type,
String path,
Throwable cause)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String type,
String path,
Throwable cause)
Constructs an InvalidMappingException using the given information and a standard message.
|
InvalidMappingException(String customMessage,
org.hibernate.internal.util.xml.XmlDocument xmlDocument)
Constructs an InvalidMappingException using the given information.
|
InvalidMappingException(String customMessage,
org.hibernate.internal.util.xml.XmlDocument xmlDocument,
Throwable cause)
Constructs an InvalidMappingException using the given information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPath() |
String |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidMappingException(String customMessage, String type, String path, Throwable cause)
Constructs an InvalidMappingException using the given information.
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 causepublic InvalidMappingException(String customMessage, String type, String path)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditiontype - The type of invalid mapping documentpath - The path (type specific) of the invalid mapping documentpublic InvalidMappingException(String customMessage, org.hibernate.internal.util.xml.XmlDocument xmlDocument, Throwable cause)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditionxmlDocument - The document that was invalidcause - The underlying causepublic InvalidMappingException(String customMessage, org.hibernate.internal.util.xml.XmlDocument xmlDocument)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditionxmlDocument - The document that was invalidpublic InvalidMappingException(String customMessage, Origin origin)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditionorigin - The origin of the invalid mapping documentpublic InvalidMappingException(String type, String path)
Constructs an InvalidMappingException using the given information and a standard message.
type - The type of invalid mapping documentpath - The path (type specific) of the invalid mapping documentpublic InvalidMappingException(String type, String path, Throwable cause)
Constructs an InvalidMappingException using the given information and a standard message.
type - The type of invalid mapping documentpath - The path (type specific) of the invalid mapping documentcause - The underlying causepublic InvalidMappingException(String customMessage, org.hibernate.internal.util.xml.Origin origin, Exception cause)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditionorigin - The origin of the invalid mapping documentcause - The underlying causepublic InvalidMappingException(String customMessage, org.hibernate.internal.util.xml.Origin origin)
Constructs an InvalidMappingException using the given information.
customMessage - The custom message explaining the exception conditionorigin - The origin of the invalid mapping documentCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.