All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.boot.MappingNotFoundException Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.boot;

import org.hibernate.boot.jaxb.Origin;

/**
 * Indicates that a mapping document could not be found at a given {@link Origin}.
 *
 * @author Steve Ebersole
 */
public class MappingNotFoundException extends MappingException {
	public MappingNotFoundException(String message, Origin origin) {
		super( message, origin );
	}

	public MappingNotFoundException(Origin origin) {
		super( String.format( "Mapping (%s) not found : %s", origin.getType(), origin.getName() ), origin );
	}

	public MappingNotFoundException(String message, Throwable root, Origin origin) {
		super( message, root, origin );
	}

	public MappingNotFoundException(Throwable root, Origin origin) {
		super( String.format( "Mapping (%s) not found : %s", origin.getType(), origin.getName() ), root, origin );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy