![JAR search and dependency download from the Maven repository](/logo.png)
org.hibernate.annotations.common.AssertionFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-commons-annotations
Show all versions of hibernate-commons-annotations
Common reflection code used in support of annotation processing
/*
* 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 - 2025 Weber Informatics LLC | Privacy Policy