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, 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the firstThrowablefromgetNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.The failed object.Exception message.The nested throwables.intException subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidStack.
-
Field Details
-
GENERAL
static final int GENERAL- See Also:
-
INTERNAL
static final int INTERNAL- See Also:
-
STORE
static final int STORE- See Also:
-
UNSUPPORTED
static final int UNSUPPORTED- See Also:
-
USER
static final int USER- See Also:
-
WRAPPED
static final int WRAPPED- See Also:
-
UNAVAILABLE
static final int UNAVAILABLE- See Also:
-
-
Method Details
-
getMessage
-
getCause
Throwable getCause()Returns the firstThrowablefromgetNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.- See Also:
-
printStackTrace
void printStackTrace()Stack.- See Also:
-
getType
int getType()Exception type. -
getSubtype
int getSubtype()Exception subtype. -
isFatal
boolean isFatal()Whether this error is fatal. -
getNestedThrowables
Throwable[] getNestedThrowables()The nested throwables. -
getFailedObject
Object getFailedObject()The failed object.
-