Package org.apache.openjpa.persistence
Class EntityNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- jakarta.persistence.EntityNotFoundException
-
- org.apache.openjpa.persistence.EntityNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
,ExceptionInfo
public class EntityNotFoundException extends jakarta.persistence.EntityNotFoundException implements java.io.Serializable, ExceptionInfo
Missing entity.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
-
-
Constructor Summary
Constructors Constructor Description EntityNotFoundException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
Returns the firstThrowable
fromExceptionInfo.getNestedThrowables()
in order to conform toThrowable.getCause()
in Java 1.4+.java.lang.Object
getFailedObject()
The failed object.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.void
printStackTrace(java.io.PrintStream out)
void
printStackTrace(java.io.PrintWriter out)
java.lang.String
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
-
-
-
-
Method Detail
-
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
public java.lang.Throwable 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 classjava.lang.Throwable
- See Also:
Throwable.getCause()
-
getNestedThrowables
public java.lang.Throwable[] getNestedThrowables()
Description copied from interface:ExceptionInfo
The nested throwables.- Specified by:
getNestedThrowables
in interfaceExceptionInfo
-
getFailedObject
public java.lang.Object getFailedObject()
Description copied from interface:ExceptionInfo
The failed object.- Specified by:
getFailedObject
in interfaceExceptionInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace()
Description copied from interface:ExceptionInfo
Stack.- Specified by:
printStackTrace
in interfaceExceptionInfo
- Overrides:
printStackTrace
in classjava.lang.Throwable
- See Also:
Throwable.printStackTrace()
-
printStackTrace
public void printStackTrace(java.io.PrintStream out)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter out)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
-