com.arsdigita.persistence
Class PersistenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.arsdigita.util.UncheckedWrapperException
                  extended bycom.arsdigita.persistence.PersistenceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteException, FlushException, InstantiatorNotFoundException, ObjectDeletedException, UndefinedEventException

public class PersistenceException
extends UncheckedWrapperException

PersistenceException

Version:
$Revision: #13 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu, randyg@alum.mit.edu
See Also:
Serialized Form

Field Summary
static String versionId
           
 
Constructor Summary
  PersistenceException(String message)
          Constructor for a PersistenceException which does not wrap another exception.
protected PersistenceException(String s, Throwable rootCause)
          Constructor which takes a message string and a root cause that this exception will be wrapping.
protected PersistenceException(Throwable rootCause)
          Constructor which takes a root cause that this exception will be wrapping.
 
Method Summary
static PersistenceException newInstance(String s)
          It's not necessary to use newInstance for just a string argument, but you can if you'd prefer to remain consistent in PersistenceException creation.
static PersistenceException newInstance(String s, Throwable rootCause)
          This method should be used to create a persistence exception wrapping another exception, to allow for creation of a particular subtype of persistence exception based on the type of the rootCause passed in.
static PersistenceException newInstance(Throwable rootCause)
          This method should be used to create a persistence exception wrapping another exception, to allow for creation of a particular subtype of persistence exception based on the type of the rootCause passed in.
 
Methods inherited from class com.arsdigita.util.UncheckedWrapperException
getMessage, getRootCause, hasRootCause, printStackTrace, printStackTrace, printStackTrace, throwLoggedException, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PersistenceException

public PersistenceException(String message)
Constructor for a PersistenceException which does not wrap another exception. If wrapping another exception, PersistenceException.newInstance(...) should be used.

See Also:
newInstance(Throwable)

PersistenceException

protected PersistenceException(Throwable rootCause)
Constructor which takes a root cause that this exception will be wrapping.


PersistenceException

protected PersistenceException(String s,
                               Throwable rootCause)
Constructor which takes a message string and a root cause that this exception will be wrapping. The message string should be something different than rootCause.getMessage() would normally provide.

Method Detail

newInstance

public static final PersistenceException newInstance(String s)
It's not necessary to use newInstance for just a string argument, but you can if you'd prefer to remain consistent in PersistenceException creation.


newInstance

public static final PersistenceException newInstance(Throwable rootCause)
This method should be used to create a persistence exception wrapping another exception, to allow for creation of a particular subtype of persistence exception based on the type of the rootCause passed in.


newInstance

public static final PersistenceException newInstance(String s,
                                                     Throwable rootCause)
This method should be used to create a persistence exception wrapping another exception, to allow for creation of a particular subtype of persistence exception based on the type of the rootCause passed in.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC