org.apache.openjpa.persistence
Class NoResultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.persistence.PersistenceException
                  extended by javax.persistence.NoResultException
                      extended by org.apache.openjpa.persistence.NoResultException
All Implemented Interfaces:
Serializable, ExceptionInfo

public class NoResultException
extends javax.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, UNSUPPORTED, USER
 
Constructor Summary
NoResultException(String msg, Throwable[] nested, Object failed, boolean fatal)
           
 
Method Summary
 Throwable getCause()
           
 Object getFailedObject()
           
 Throwable[] getNestedThrowables()
           
 int getSubtype()
           
 int getType()
           
 boolean isFatal()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream out)
           
 void printStackTrace(PrintWriter out)
           
 String toString()
           
 
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
 

Constructor Detail

NoResultException

public NoResultException(String msg,
                         Throwable[] nested,
                         Object failed,
                         boolean fatal)
Method Detail

getType

public int getType()
Specified by:
getType in interface ExceptionInfo

getSubtype

public int getSubtype()
Specified by:
getSubtype in interface ExceptionInfo

isFatal

public boolean isFatal()
Specified by:
isFatal in interface ExceptionInfo

getCause

public Throwable getCause()
Specified by:
getCause in interface ExceptionInfo
Overrides:
getCause in class Throwable

getNestedThrowables

public Throwable[] getNestedThrowables()
Specified by:
getNestedThrowables in interface ExceptionInfo

getFailedObject

public Object getFailedObject()
Specified by:
getFailedObject in interface ExceptionInfo

toString

public String toString()
Overrides:
toString in class Throwable

printStackTrace

public void printStackTrace()
Specified by:
printStackTrace in interface ExceptionInfo
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream out)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter out)
Overrides:
printStackTrace in class Throwable


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.