1
package org.hibernate.bytecode.javassist;
4
* An exception thrown while generating a bulk accessor.
6
* @author Muga Nishizawa
7
* @author modified by Shigeru Chiba
9
public class BulkAccessorException extends RuntimeException {
10
private Throwable myCause;
13
* Gets the cause of this throwable.
14
* It is for JDK 1.3 compatibility.
16
public Throwable getCause() {
17
return (myCause == this ? null : myCause);
21
* Initializes the cause of this throwable.
22
* It is for JDK 1.3 compatibility.
24
public synchronized Throwable initCause(Throwable cause) {
32
* Constructs an exception.
34
public BulkAccessorException(String message) {
41
* Constructs an exception.
43
* @param index the index of the property that causes an exception.
45
public BulkAccessorException(String message, int index) {
46
this(message + ": " + index);
51
* Constructs an exception.
53
public BulkAccessorException(String message, Throwable cause) {
60
* Constructs an exception.
62
* @param index the index of the property that causes an exception.
64
public BulkAccessorException(Throwable cause, int index) {
65
this("Property " + index);
71
* Returns the index of the property that causes this exception.
73
* @return -1 if the index is not specified.
75
public int getIndex() {