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

org.hibernate.annotations.common.AssertionFailure Maven / Gradle / Ivy

There is a newer version: 6.0.6.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.annotations.common;

import org.hibernate.annotations.common.util.impl.Log;
import org.hibernate.annotations.common.util.impl.LoggerFactory;


/**
 * Indicates failure of an assertion: a possible bug in Hibernate.
 *
 * @author Gavin King
 * @auhor Emmanuel Bernard
 */
public class AssertionFailure extends RuntimeException {

	private static final Log log = LoggerFactory.make( AssertionFailure.class.getName() );

	public AssertionFailure(String s) {
		super(s);
		log.assertionFailure( this );
	}

	public AssertionFailure(String s, Throwable t) {
		super(s, t);
		log.assertionFailure( this );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy