Package org.hibernate

Class InvalidMappingException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    InvalidMappingException

    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)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidMappingException​(java.lang.String type, java.lang.String path)
      Constructs an InvalidMappingException using the given information and a standard message.
      InvalidMappingException​(java.lang.String customMessage, java.lang.String type, java.lang.String path)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String customMessage, java.lang.String type, java.lang.String path, java.lang.Throwable cause)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String type, java.lang.String path, java.lang.Throwable cause)
      Constructs an InvalidMappingException using the given information and a standard message.
      InvalidMappingException​(java.lang.String customMessage, Origin origin)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String customMessage, org.hibernate.internal.util.xml.Origin origin)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String customMessage, org.hibernate.internal.util.xml.Origin origin, java.lang.Exception cause)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String customMessage, org.hibernate.internal.util.xml.XmlDocument xmlDocument)
      Constructs an InvalidMappingException using the given information.
      InvalidMappingException​(java.lang.String customMessage, org.hibernate.internal.util.xml.XmlDocument xmlDocument, java.lang.Throwable cause)
      Constructs an InvalidMappingException using the given information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPath()  
      java.lang.String getType()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       java.lang.String type,
                                       java.lang.String path,
                                       java.lang.Throwable cause)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        type - The type of invalid mapping document
        path - The path (type specific) of the invalid mapping document
        cause - The underlying cause
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       java.lang.String type,
                                       java.lang.String path)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        type - The type of invalid mapping document
        path - The path (type specific) of the invalid mapping document
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       org.hibernate.internal.util.xml.XmlDocument xmlDocument,
                                       java.lang.Throwable cause)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        xmlDocument - The document that was invalid
        cause - The underlying cause
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       org.hibernate.internal.util.xml.XmlDocument xmlDocument)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        xmlDocument - The document that was invalid
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       Origin origin)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        origin - The origin of the invalid mapping document
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String type,
                                       java.lang.String path)
        Constructs an InvalidMappingException using the given information and a standard message.
        Parameters:
        type - The type of invalid mapping document
        path - The path (type specific) of the invalid mapping document
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String type,
                                       java.lang.String path,
                                       java.lang.Throwable cause)
        Constructs an InvalidMappingException using the given information and a standard message.
        Parameters:
        type - The type of invalid mapping document
        path - The path (type specific) of the invalid mapping document
        cause - The underlying cause
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       org.hibernate.internal.util.xml.Origin origin,
                                       java.lang.Exception cause)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        origin - The origin of the invalid mapping document
        cause - The underlying cause
      • InvalidMappingException

        public InvalidMappingException​(java.lang.String customMessage,
                                       org.hibernate.internal.util.xml.Origin origin)
        Constructs an InvalidMappingException using the given information.
        Parameters:
        customMessage - The custom message explaining the exception condition
        origin - The origin of the invalid mapping document
    • Method Detail

      • getType

        public java.lang.String getType()
      • getPath

        public java.lang.String getPath()