wt.pom
Class ObjectIsStaleException

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

public class ObjectIsStaleException
extends PersistenceException

ObjectIsStaleException captures errors with a datastore interaction. It occurs when an update or delete of an objected is attempted, but cannot be completed because its updatecount is not current, i.e. another process has updated the object.

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
ObjectIsStaleException(Persistable object, String messageKey)
          This constructor creates a specific message.
 
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, 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

ObjectIsStaleException

public ObjectIsStaleException(Persistable object,
                              String messageKey)
This constructor creates a specific message.

Supported API: false

Parameters:
object - used to derive object display parameter for exception message
messageKey - key to use for exception message