assertionfailure.java

来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 37 行

JAVA
37
字号
//$Id: AssertionFailure.java 3890 2004-06-03 16:31:32Z steveebersole $package org.hibernate;import org.hibernate.exception.NestableRuntimeException;import org.slf4j.Logger;import org.slf4j.LoggerFactory;/** * Indicates failure of an assertion: a possible bug in Hibernate. * * @author Gavin King */public class AssertionFailure extends NestableRuntimeException {	private static final Logger log = LoggerFactory.getLogger(AssertionFailure.class);	private static final String MESSAGE = "an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)";	public AssertionFailure(String s) {		super(s);		log.error(MESSAGE, this);	}	public AssertionFailure(String s, Throwable t) {		super(s, t);		log.error(MESSAGE, t);	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?