org.apache.openjpa.persistence
Class NonUniqueResultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.NonUniqueResultException
org.apache.openjpa.persistence.NonUniqueResultException
- All Implemented Interfaces:
- java.io.Serializable, org.apache.openjpa.util.ExceptionInfo
public class NonUniqueResultException
- extends javax.persistence.NonUniqueResultException
- implements java.io.Serializable, org.apache.openjpa.util.ExceptionInfo
Unique query returned multipl results.
- Since:
- 4.0
- Author:
- Abe White
- See Also:
- Serialized Form
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo |
GENERAL, INTERNAL, STORE, UNSUPPORTED, USER |
Constructor Summary |
NonUniqueResultException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed,
boolean fatal)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, 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 |
NonUniqueResultException
public NonUniqueResultException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed,
boolean fatal)
getType
public int getType()
- Specified by:
getType
in interface org.apache.openjpa.util.ExceptionInfo
getSubtype
public int getSubtype()
- Specified by:
getSubtype
in interface org.apache.openjpa.util.ExceptionInfo
isFatal
public boolean isFatal()
- Specified by:
isFatal
in interface org.apache.openjpa.util.ExceptionInfo
getCause
public java.lang.Throwable getCause()
- Specified by:
getCause
in interface org.apache.openjpa.util.ExceptionInfo
- Overrides:
getCause
in class java.lang.Throwable
getNestedThrowables
public java.lang.Throwable[] getNestedThrowables()
- Specified by:
getNestedThrowables
in interface org.apache.openjpa.util.ExceptionInfo
getFailedObject
public java.lang.Object getFailedObject()
- Specified by:
getFailedObject
in interface org.apache.openjpa.util.ExceptionInfo
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
printStackTrace
public void printStackTrace()
- Specified by:
printStackTrace
in interface org.apache.openjpa.util.ExceptionInfo
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream out)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter out)
- Overrides:
printStackTrace
in class java.lang.Throwable
Copyright © 2006 Apache Software Foundation. All Rights Reserved.