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 ExceptionInfoInterface 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 intGENERALstatic intINTERNALstatic intSTOREstatic intUNAVAILABLEstatic intUNSUPPORTEDstatic intUSERstatic intWRAPPED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the firstThrowablefromgetNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.java.lang.ObjectgetFailedObject()The failed object.java.lang.StringgetMessage()Exception message.java.lang.Throwable[]getNestedThrowables()The nested throwables.intgetSubtype()Exception subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidprintStackTrace()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 firstThrowablefromgetNestedThrowables()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.
-
-