wt.pom
Class DatastoreException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bywt.util.WTException
              extended bywt.pom.PersistenceException
                  extended bywt.pom.DatastoreException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable
Direct Known Subclasses:
ConnectionException, ConnectionLostException, DeadlockDetectedException, DuplicateException, ObjectLockedException, UnassignedOidException, UniquenessException

public class DatastoreException
extends PersistenceException

DatastoreException captures errors with a datastore interaction. A generic exception.

Supported API: true
Extendable: false

See Also:
Serialized Form

Field Summary
private static String RESOURCE
           
 
Fields inherited from class wt.util.WTException
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
protected DatastoreException()
           
  DatastoreException(Exception ex)
           
  DatastoreException(Exception ex, String sqlStatement)
           
  DatastoreException(Exception ex, String ekey, Object[] params)
           
  DatastoreException(Exception t, String rb, String key, Object[] params)
           
  DatastoreException(Object[] additionalMessages)
           
  DatastoreException(String rb, String key, Object[] params)
           
 
Method Summary
private  String getNestedToString(Throwable t)
           
 String toString(boolean nested)
          Returns a description of this DatastoreException.
 
Methods inherited from class wt.pom.PersistenceException
getObjectDisplay
 
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

DatastoreException

protected DatastoreException()

DatastoreException

public DatastoreException(Exception ex)

DatastoreException

public DatastoreException(Exception ex,
                          String sqlStatement)

DatastoreException

public DatastoreException(Exception ex,
                          String ekey,
                          Object[] params)

DatastoreException

public DatastoreException(String rb,
                          String key,
                          Object[] params)

DatastoreException

public DatastoreException(Exception t,
                          String rb,
                          String key,
                          Object[] params)

DatastoreException

public DatastoreException(Object[] additionalMessages)
Method Detail

toString

public String toString(boolean nested)
Returns a description of this DatastoreException. The description optionally includes the descriptions of the nested throwable objects that are embedded within this DatastoreException. If the nested throwable is a SQLException, each chained SQLException message is included.

Overrides:
toString in class WTException
Parameters:
nested - include nested exceptions in message

getNestedToString

private String getNestedToString(Throwable t)