Package org.apache.openjpa.persistence
Class PersistenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.apache.openjpa.persistence.PersistenceException
- All Implemented Interfaces:
Serializable
,ExceptionInfo
public class PersistenceException
extends jakarta.persistence.PersistenceException
implements Serializable, ExceptionInfo
General persistence exception.
- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
-
Field Summary
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
-
Constructor Summary
ConstructorDescriptionPersistenceException
(String msg, Throwable[] nested, Object failed, boolean fatal) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns the firstThrowable
fromExceptionInfo.getNestedThrowables()
in order to conform toThrowable.getCause()
in Java 1.4+.The failed object.The nested throwables.int
Exception subtype.int
getType()
Exception type.boolean
isFatal()
Whether this error is fatal.void
Stack.void
void
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
-
Constructor Details
-
PersistenceException
-
-
Method Details
-
getType
public int getType()Description copied from interface:ExceptionInfo
Exception type.- Specified by:
getType
in interfaceExceptionInfo
-
getSubtype
public int getSubtype()Description copied from interface:ExceptionInfo
Exception subtype.- Specified by:
getSubtype
in interfaceExceptionInfo
-
isFatal
public boolean isFatal()Description copied from interface:ExceptionInfo
Whether this error is fatal.- Specified by:
isFatal
in interfaceExceptionInfo
-
getCause
Description copied from interface:ExceptionInfo
Returns the firstThrowable
fromExceptionInfo.getNestedThrowables()
in order to conform toThrowable.getCause()
in Java 1.4+.- Specified by:
getCause
in interfaceExceptionInfo
- Overrides:
getCause
in classThrowable
- See Also:
-
getNestedThrowables
Description copied from interface:ExceptionInfo
The nested throwables.- Specified by:
getNestedThrowables
in interfaceExceptionInfo
-
getFailedObject
Description copied from interface:ExceptionInfo
The failed object.- Specified by:
getFailedObject
in interfaceExceptionInfo
-
toString
-
printStackTrace
public void printStackTrace()Description copied from interface:ExceptionInfo
Stack.- Specified by:
printStackTrace
in interfaceExceptionInfo
- Overrides:
printStackTrace
in classThrowable
- See Also:
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-