Top Description Fields Constructors Methods
org.hibernate

public Class InvalidMappingException

extends MappingException
Class Inheritance
Known Direct Subclasses
org.hibernate.boot.InvalidMappingException
Imports
org.hibernate.boot.jaxb.Origin

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).

Authors
Max Rydahl Andersen, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
InvalidMappingException(String
The custom message explaining the exception condition
customMessage
,
String
The type of invalid mapping document
type
,
String
The path (type specific) of the invalid mapping document
path
,
Throwable
The underlying cause
cause
)

Constructs an InvalidMappingException using the given information.

public
InvalidMappingException(String
The custom message explaining the exception condition
customMessage
,
String
The type of invalid mapping document
type
,
String
The path (type specific) of the invalid mapping document
path
)

Constructs an InvalidMappingException using the given information.

public
InvalidMappingException(String
The custom message explaining the exception condition
customMessage
,
Origin
The origin of the invalid mapping document
origin
)

Constructs an InvalidMappingException using the given information.

Method Summary

Modifier and TypeMethod and Description
public String
public String

Field Detail

pathback to summary
private final String path
typeback to summary
private final String type

Constructor Detail

InvalidMappingExceptionback to summary
public InvalidMappingException(String customMessage, String type, String path, Throwable cause)

Constructs an InvalidMappingException using the given information.

Parameters
customMessage:String

The custom message explaining the exception condition

type:String

The type of invalid mapping document

path:String

The path (type specific) of the invalid mapping document

cause:Throwable

The underlying cause

InvalidMappingExceptionback to summary
public InvalidMappingException(String customMessage, String type, String path)

Constructs an InvalidMappingException using the given information.

Parameters
customMessage:String

The custom message explaining the exception condition

type:String

The type of invalid mapping document

path:String

The path (type specific) of the invalid mapping document

InvalidMappingExceptionback to summary
public InvalidMappingException(String customMessage, Origin origin)

Constructs an InvalidMappingException using the given information.

Parameters
customMessage:String

The custom message explaining the exception condition

origin:Origin

The origin of the invalid mapping document

Method Detail

getPathback to summary
public String getPath()
getTypeback to summary
public String getType()