程序包 org.hibernate

类 InvalidMappingException

  • 所有已实现的接口:
    Serializable
    直接已知子类:
    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)
    作者:
    Max Rydahl Andersen, Steve Ebersole
    另请参阅:
    序列化表格
    • 构造器详细资料

      • InvalidMappingException

        public InvalidMappingException​(String customMessage,
                                       String type,
                                       String path,
                                       Throwable cause)
        Constructs an InvalidMappingException using the given information.
        参数:
        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.
        参数:
        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.
        参数:
        customMessage - The custom message explaining the exception condition
        origin - The origin of the invalid mapping document
    • 方法详细资料

      • getType

        public String getType()
      • getPath

        public String getPath()