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 contains more information about the path and type of mapping (e.g. file, resource or URL).

See Also:
  • Constructor Details

    • 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 Details

    • getType

      public String getType()
    • getPath

      public String getPath()