bulkaccessorexception.java
来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 79 行
JAVA
79 行
package org.hibernate.bytecode.javassist;/** * An exception thrown while generating a bulk accessor. * * @author Muga Nishizawa * @author modified by Shigeru Chiba */public class BulkAccessorException extends RuntimeException { private Throwable myCause; /** * Gets the cause of this throwable. * It is for JDK 1.3 compatibility. */ public Throwable getCause() { return (myCause == this ? null : myCause); } /** * Initializes the cause of this throwable. * It is for JDK 1.3 compatibility. */ public synchronized Throwable initCause(Throwable cause) { myCause = cause; return this; } private int index; /** * Constructs an exception. */ public BulkAccessorException(String message) { super(message); index = -1; initCause(null); } /** * Constructs an exception. * * @param index the index of the property that causes an exception. */ public BulkAccessorException(String message, int index) { this(message + ": " + index); this.index = index; } /** * Constructs an exception. */ public BulkAccessorException(String message, Throwable cause) { super(message); index = -1; initCause(cause); } /** * Constructs an exception. * * @param index the index of the property that causes an exception. */ public BulkAccessorException(Throwable cause, int index) { this("Property " + index); this.index = index; initCause(cause); } /** * Returns the index of the property that causes this exception. * * @return -1 if the index is not specified. */ public int getIndex() { return this.index; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?