com.sun.jdo.api.persistence.support
Class JDOObjectNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.jdo.api.persistence.support.JDOException
                  extended by com.sun.jdo.api.persistence.support.JDOCanRetryException
                      extended by com.sun.jdo.api.persistence.support.JDODataStoreException
                          extended by com.sun.jdo.api.persistence.support.JDOObjectNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class JDOObjectNotFoundException
extends JDODataStoreException

JDOObjectNotFoundException is thrown instead of a more generic JDODataStoreException in case an internal or an external query returned 0 rows.

Version:
0.1
Author:
Marina Vatkina
See Also:
Serialized Form

Constructor Summary
JDOObjectNotFoundException()
          Creates a new JDOObjectNotFoundException without detail message.
JDOObjectNotFoundException(java.lang.String msg)
          Constructs a new JDOObjectNotFoundException with the specified detail message.
JDOObjectNotFoundException(java.lang.String msg, java.lang.Exception nested)
          Constructs a new JDOObjectNotFoundException with the specified detail message and nested Exception.
JDOObjectNotFoundException(java.lang.String msg, java.lang.Exception nested, java.lang.Object[] failed)
          Constructs a new JDOObjectNotFoundException with the specified detail message, nested exception, and failed object array.
JDOObjectNotFoundException(java.lang.String msg, java.lang.Object[] failed)
          Constructs a new JDOObjectNotFoundException with the specified detail message and failed object array.
 
Method Summary
 
Methods inherited from class com.sun.jdo.api.persistence.support.JDOException
addFailedObject, getFailedObjectArray, getNestedException, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDOObjectNotFoundException

public JDOObjectNotFoundException()
Creates a new JDOObjectNotFoundException without detail message.


JDOObjectNotFoundException

public JDOObjectNotFoundException(java.lang.String msg)
Constructs a new JDOObjectNotFoundException with the specified detail message.

Parameters:
msg - the detail message.

JDOObjectNotFoundException

public JDOObjectNotFoundException(java.lang.String msg,
                                  java.lang.Exception nested)
Constructs a new JDOObjectNotFoundException with the specified detail message and nested Exception.

Parameters:
msg - the detail message.
nested - the nested Exception.

JDOObjectNotFoundException

public JDOObjectNotFoundException(java.lang.String msg,
                                  java.lang.Object[] failed)
Constructs a new JDOObjectNotFoundException with the specified detail message and failed object array.

Parameters:
msg - the detail message.
failed - the failed object array.

JDOObjectNotFoundException

public JDOObjectNotFoundException(java.lang.String msg,
                                  java.lang.Exception nested,
                                  java.lang.Object[] failed)
Constructs a new JDOObjectNotFoundException with the specified detail message, nested exception, and failed object array.

Parameters:
msg - the detail message.
nested - the nested Exception.
failed - the failed object array.


Copyright © 2012 GlassFish Community. All Rights Reserved.