wt.pom
Class UniquenessException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bywt.util.WTException
              extended bywt.pom.PersistenceException
                  extended bywt.pom.DatastoreException
                      extended bywt.pom.UniquenessException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable

public class UniquenessException
extends DatastoreException

UniquenessException captures errors with a datastore interaction. It occurs when an attempt to insert or update an object is made, but cannot be completed because a database uniqueness constraint has been violated.

Supported API: true
Extendable: false

See Also:
Serialized Form

Field Summary
private static String PDS_RESOURCE
           
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 UniquenessException()
           
  UniquenessException(Exception ex)
           
  UniquenessException(Exception t, String rb, String key, Object[] params)
           
  UniquenessException(Object[] additionalMessages)
           
  UniquenessException(Persistable object)
           
  UniquenessException(SQLException ex, Persistable object)
           
  UniquenessException(String rb, String key, Object[] params)
           
  UniquenessException(WTCollection objects)
           
 
Method Summary
private static Object[] buildAdditionalMessages(WTCollection objects)
           
private  void initialize()
           
private  void initialize(Persistable object)
           
 
Methods inherited from class wt.pom.DatastoreException
toString
 
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

PDS_RESOURCE

private static final String PDS_RESOURCE
Constructor Detail

UniquenessException

protected UniquenessException()

UniquenessException

public UniquenessException(Exception ex)

UniquenessException

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

UniquenessException

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

UniquenessException

public UniquenessException(Object[] additionalMessages)

UniquenessException

public UniquenessException(SQLException ex,
                           Persistable object)

UniquenessException

public UniquenessException(Persistable object)

UniquenessException

public UniquenessException(WTCollection objects)
Method Detail

initialize

private void initialize(Persistable object)

initialize

private void initialize()

buildAdditionalMessages

private static Object[] buildAdditionalMessages(WTCollection objects)