Package org.apache.openjpa.persistence
Class NoResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- jakarta.persistence.NoResultException
-
- org.apache.openjpa.persistence.NoResultException
-
- All Implemented Interfaces:
Serializable,ExceptionInfo
public class NoResultException extends jakarta.persistence.NoResultException implements Serializable, ExceptionInfo
Unique query returned no results.- 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 NoResultException(String msg, Throwable[] nested, Object failed, boolean fatal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()Returns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.ObjectgetFailedObject()The failed object.Throwable[]getNestedThrowables()The nested throwables.intgetSubtype()Exception subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidprintStackTrace()Stack.voidprintStackTrace(PrintStream out)voidprintStackTrace(PrintWriter out)StringtoString()-
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:ExceptionInfoException type.- Specified by:
getTypein interfaceExceptionInfo
-
getSubtype
public int getSubtype()
Description copied from interface:ExceptionInfoException subtype.- Specified by:
getSubtypein interfaceExceptionInfo
-
isFatal
public boolean isFatal()
Description copied from interface:ExceptionInfoWhether this error is fatal.- Specified by:
isFatalin interfaceExceptionInfo
-
getCause
public Throwable getCause()
Description copied from interface:ExceptionInfoReturns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.- Specified by:
getCausein interfaceExceptionInfo- Overrides:
getCausein classThrowable- See Also:
Throwable.getCause()
-
getNestedThrowables
public Throwable[] getNestedThrowables()
Description copied from interface:ExceptionInfoThe nested throwables.- Specified by:
getNestedThrowablesin interfaceExceptionInfo
-
getFailedObject
public Object getFailedObject()
Description copied from interface:ExceptionInfoThe failed object.- Specified by:
getFailedObjectin interfaceExceptionInfo
-
printStackTrace
public void printStackTrace()
Description copied from interface:ExceptionInfoStack.- Specified by:
printStackTracein interfaceExceptionInfo- Overrides:
printStackTracein classThrowable- See Also:
Throwable.printStackTrace()
-
printStackTrace
public void printStackTrace(PrintStream out)
- Overrides:
printStackTracein classThrowable
-
printStackTrace
public void printStackTrace(PrintWriter out)
- Overrides:
printStackTracein classThrowable
-
-