FileDocCategorySizeDatePackage
BulkAccessorException.javaAPI DocHibernate 3.2.51830Fri Feb 03 15:15:20 GMT 2006org.hibernate.bytecode.javassist

BulkAccessorException

public class BulkAccessorException extends RuntimeException
An exception thrown while generating a bulk accessor.
author
Muga Nishizawa
author
modified by Shigeru Chiba

Fields Summary
private Throwable
myCause
private int
index
Constructors Summary
public BulkAccessorException(String message)
Constructs an exception.

        super(message);
        index = -1;
        initCause(null);
    
public BulkAccessorException(String message, int index)
Constructs an exception.

param
index the index of the property that causes an exception.

        this(message + ": " + index);
        this.index = index;
    
public BulkAccessorException(String message, Throwable cause)
Constructs an exception.

        super(message);
        index = -1;
        initCause(cause);
    
public BulkAccessorException(Throwable cause, int index)
Constructs an exception.

param
index the index of the property that causes an exception.

        this("Property " + index);
        this.index = index;
        initCause(cause);
    
Methods Summary
public java.lang.ThrowablegetCause()
Gets the cause of this throwable. It is for JDK 1.3 compatibility.

        return (myCause == this ? null : myCause);
    
public intgetIndex()
Returns the index of the property that causes this exception.

return
-1 if the index is not specified.

        return this.index;
    
public synchronized java.lang.ThrowableinitCause(java.lang.Throwable cause)
Initializes the cause of this throwable. It is for JDK 1.3 compatibility.

        myCause = cause;
        return this;