Package org.hibernate

Class InvalidMappingException

  • All Implemented Interfaces:
    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 Detail

      • InvalidMappingException

        public InvalidMappingException​(String customMessage,
                                       String type,
                                       String path,
                                       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​(String customMessage,
                                       String type,
                                       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​(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
    • Method Detail

      • getType

        public String getType()
      • getPath

        public String getPath()