Package org.apache.openjpa.persistence
Class TransactionRequiredException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- jakarta.persistence.PersistenceException
- 
- jakarta.persistence.TransactionRequiredException
- 
- org.apache.openjpa.persistence.TransactionRequiredException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- ExceptionInfo
 
 public class TransactionRequiredException extends jakarta.persistence.TransactionRequiredException implements java.io.Serializable, ExceptionInfo Transaction required.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.openjpa.util.ExceptionInfoGENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
 
- 
 - 
Constructor SummaryConstructors Constructor Description TransactionRequiredException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)TransactionRequiredException(Localizer.Message msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.java.lang.ObjectgetFailedObject()The failed object.java.lang.Throwable[]getNestedThrowables()The nested throwables.intgetSubtype()Exception subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidprintStackTrace()Stack.voidprintStackTrace(java.io.PrintStream out)voidprintStackTrace(java.io.PrintWriter out)java.lang.StringtoString()- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.openjpa.util.ExceptionInfogetMessage
 
- 
 
- 
- 
- 
Constructor Detail- 
TransactionRequiredExceptionpublic TransactionRequiredException(Localizer.Message msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal) 
 - 
TransactionRequiredExceptionpublic TransactionRequiredException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
 
- 
 - 
Method Detail- 
getTypepublic int getType() Description copied from interface:ExceptionInfoException type.- Specified by:
- getTypein interface- ExceptionInfo
 
 - 
getSubtypepublic int getSubtype() Description copied from interface:ExceptionInfoException subtype.- Specified by:
- getSubtypein interface- ExceptionInfo
 
 - 
isFatalpublic boolean isFatal() Description copied from interface:ExceptionInfoWhether this error is fatal.- Specified by:
- isFatalin interface- ExceptionInfo
 
 - 
getCausepublic java.lang.Throwable getCause() Description copied from interface:ExceptionInfoReturns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.- Specified by:
- getCausein interface- ExceptionInfo
- Overrides:
- getCausein class- java.lang.Throwable
- See Also:
- Throwable.getCause()
 
 - 
getNestedThrowablespublic java.lang.Throwable[] getNestedThrowables() Description copied from interface:ExceptionInfoThe nested throwables.- Specified by:
- getNestedThrowablesin interface- ExceptionInfo
 
 - 
getFailedObjectpublic java.lang.Object getFailedObject() Description copied from interface:ExceptionInfoThe failed object.- Specified by:
- getFailedObjectin interface- ExceptionInfo
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Throwable
 
 - 
printStackTracepublic void printStackTrace() Description copied from interface:ExceptionInfoStack.- Specified by:
- printStackTracein interface- ExceptionInfo
- Overrides:
- printStackTracein class- java.lang.Throwable
- See Also:
- Throwable.printStackTrace()
 
 - 
printStackTracepublic void printStackTrace(java.io.PrintStream out) - Overrides:
- printStackTracein class- java.lang.Throwable
 
 - 
printStackTracepublic void printStackTrace(java.io.PrintWriter out) - Overrides:
- printStackTracein class- java.lang.Throwable
 
 
- 
 
-