Package org.apache.openjpa.util
Interface ExceptionInfo
-
- All Known Implementing Classes:
ArgumentException
,CallbackException
,EntityExistsException
,EntityNotFoundException
,GeneralException
,InternalException
,InvalidStateException
,InvalidStateException
,LockException
,LockTimeoutException
,MetaDataException
,NonUniqueResultException
,NonUniqueResultException
,NoResultException
,NoResultException
,NoTransactionException
,ObjectExistsException
,ObjectNotFoundException
,OpenJPAException
,OptimisticException
,OptimisticLockException
,ParseException
,PersistenceException
,PessimisticLockException
,QueryException
,QueryTimeoutException
,ReferentialIntegrityException
,RollbackException
,StoreException
,TransactionRequiredException
,UnsupportedException
,UserException
,ValidationException
,ValidationUnavailableException
,WrappedException
public interface ExceptionInfo
Interface supplying additional exception information. All OpenJPA exceptions implement this interface.- Since:
- 0.4.0
- Author:
- Abe White
-
-
Field Summary
Fields Modifier and Type Field Description static int
GENERAL
static int
INTERNAL
static int
STORE
static int
UNAVAILABLE
static int
UNSUPPORTED
static int
USER
static int
WRAPPED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Throwable
getCause()
Returns the firstThrowable
fromgetNestedThrowables()
in order to conform toThrowable.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
-
WRAPPED
static final int WRAPPED
- See Also:
- Constant Field Values
-
UNAVAILABLE
static final int UNAVAILABLE
- 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 firstThrowable
fromgetNestedThrowables()
in order to conform toThrowable.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.
-
-