org.apache.openjpa.util
Interface ExceptionInfo

All Known Implementing Classes:
CallbackException, GeneralException, InternalException, InvalidStateException, LockException, MetaDataException, NonUniqueResultException, NoResultException, NoTransactionException, ObjectExistsException, ObjectNotFoundException, OpenJPAException, OptimisticException, ParseException, ReferentialIntegrityException, StoreException, UnsupportedException, UserException

public interface ExceptionInfo

Interface supplying additional exception information. All OpenJPA exceptions implement this interface.

Since:
0.4.0
Author:
Abe White

Field Summary
static int GENERAL
           
static int INTERNAL
           
static int STORE
           
static int UNSUPPORTED
           
static int USER
           
 
Method Summary
 java.lang.Throwable getCause()
          Returns the first Throwable from getNestedThrowables() in order to conform to Throwable.getCause() in Java 1.4+.
 java.lang.Object getFailedObject()
          The failed object.
 java.lang.String getMessage()
          Exception message.
 java.lang.Throwable[] getNestedThrowables()
          The nested throwables.
 int getSubtype()
          Exception subtype.
 int getType()
          Exception type.
 boolean isFatal()
          Whether this error is fatal.
 void printStackTrace()
          Stack.
 

Field Detail

GENERAL

static final int GENERAL
See Also:
Constant Field Values

INTERNAL

static final int INTERNAL
See Also:
Constant Field Values

STORE

static final int STORE
See Also:
Constant Field Values

UNSUPPORTED

static final int UNSUPPORTED
See Also:
Constant Field Values

USER

static final int USER
See Also:
Constant Field Values
Method Detail

getMessage

java.lang.String getMessage()
Exception message.

See Also:
Throwable.getMessage()

getCause

java.lang.Throwable getCause()
Returns the first Throwable from getNestedThrowables() in order to conform to Throwable.getCause() in Java 1.4+.

See Also:
Throwable.getCause()

printStackTrace

void printStackTrace()
Stack.

See Also:
Throwable.printStackTrace()

getType

int getType()
Exception type.


getSubtype

int getSubtype()
Exception subtype.


isFatal

boolean isFatal()
Whether this error is fatal.


getNestedThrowables

java.lang.Throwable[] getNestedThrowables()
The nested throwables.


getFailedObject

java.lang.Object getFailedObject()
The failed object.