org.hibernate.bytecode.javassist
Class BulkAccessorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.hibernate.bytecode.javassist.BulkAccessorException
All Implemented Interfaces:
java.io.Serializable

public class BulkAccessorException
extends java.lang.RuntimeException

An exception thrown while generating a bulk accessor.

Author:
Muga Nishizawa, modified by Shigeru Chiba
See Also:
Serialized Form

Constructor Summary
BulkAccessorException(java.lang.String message)
          Constructs an exception.
BulkAccessorException(java.lang.String message, int index)
          Constructs an exception.
BulkAccessorException(java.lang.String message, java.lang.Throwable cause)
          Constructs an exception.
BulkAccessorException(java.lang.Throwable cause, int index)
          Constructs an exception.
 
Method Summary
 java.lang.Throwable getCause()
          Gets the cause of this throwable.
 int getIndex()
          Returns the index of the property that causes this exception.
 java.lang.Throwable initCause(java.lang.Throwable cause)
          Initializes the cause of this throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BulkAccessorException

public BulkAccessorException(java.lang.String message)
Constructs an exception.


BulkAccessorException

public BulkAccessorException(java.lang.String message,
                             int index)
Constructs an exception.

Parameters:
index - the index of the property that causes an exception.

BulkAccessorException

public BulkAccessorException(java.lang.String message,
                             java.lang.Throwable cause)
Constructs an exception.


BulkAccessorException

public BulkAccessorException(java.lang.Throwable cause,
                             int index)
Constructs an exception.

Parameters:
index - the index of the property that causes an exception.
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the cause of this throwable. It is for JDK 1.3 compatibility.

Overrides:
getCause in class java.lang.Throwable

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)
Initializes the cause of this throwable. It is for JDK 1.3 compatibility.

Overrides:
initCause in class java.lang.Throwable

getIndex

public int getIndex()
Returns the index of the property that causes this exception.

Returns:
-1 if the index is not specified.


Copyright © 2008 Hibernate.org. All Rights Reserved.