org.hibernate

Class InvalidMappingException

Implemented Interfaces:
Nestable

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)
Author:
Max Rydahl Andersen

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

InvalidMappingException(String type, String path)
InvalidMappingException(String customMessage, String type, String path)
InvalidMappingException(String customMessage, String type, String path, Throwable cause)
InvalidMappingException(String type, String path, Throwable cause)

Method Summary

String
getPath()
String
getType()

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

InvalidMappingException

public InvalidMappingException(String type,
                               String path)

InvalidMappingException

public InvalidMappingException(String customMessage,
                               String type,
                               String path)

InvalidMappingException

public InvalidMappingException(String customMessage,
                               String type,
                               String path,
                               Throwable cause)

InvalidMappingException

public InvalidMappingException(String type,
                               String path,
                               Throwable cause)

Method Details

getPath

public String getPath()

getType

public String getType()