ch.elca.el4j.core.exceptions
Class ObjectModificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.elca.el4j.core.exceptions.BaseException
              extended by ch.elca.el4j.core.exceptions.ObjectModificationException
All Implemented Interfaces:
Serializable

Deprecated. Spring data access exception will be used.

public class ObjectModificationException
extends BaseException

This exception will be thrown when the optimistic locking detects a modification.

Author:
Martin Zeltner (MZE)
See Also:
OptimisticLockingFailureException, Serialized Form
File-location:
ObjectModificationException
Last check-in date:
2009-08-04 15:22:05 +0200 (Di, 04. Aug 2009) by swismer for revision 3881

Field Summary
static String EXCEPTION_MESSAGE_OBJECTMODIFICATION
          Deprecated. Message, which has to be formated.
protected  String m_objectName
          Deprecated. Name of the object, where the exception occured.
 
Fields inherited from class ch.elca.el4j.core.exceptions.BaseException
m_message, m_messageFormatParameters
 
Constructor Summary
ObjectModificationException(String objectName)
          Deprecated. Constructor.
ObjectModificationException(String objectName, Throwable cause)
          Deprecated. Constructor.
 
Method Summary
 Object[] getFormatParameters()
          Deprecated. Gets parameters defined for the message.
 String getObjectName()
          Deprecated.  
 
Methods inherited from class ch.elca.el4j.core.exceptions.BaseException
getFormatString, getMessage, setFormatString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXCEPTION_MESSAGE_OBJECTMODIFICATION

public static final String EXCEPTION_MESSAGE_OBJECTMODIFICATION
Deprecated. 
Message, which has to be formated.

See Also:
Constant Field Values

m_objectName

protected String m_objectName
Deprecated. 
Name of the object, where the exception occured.

Constructor Detail

ObjectModificationException

public ObjectModificationException(String objectName)
Deprecated. 
Constructor.

Parameters:
objectName - Is the name of the object, where the exception occured.

ObjectModificationException

public ObjectModificationException(String objectName,
                                   Throwable cause)
Deprecated. 
Constructor.

Parameters:
objectName - Is the name of the object, where the exception occured.
cause - Is the cause for this exception.
Method Detail

getObjectName

public String getObjectName()
Deprecated. 
Returns:
Returns the objectName.

getFormatParameters

public Object[] getFormatParameters()
Deprecated. 
Gets parameters defined for the message. This should be overridden if you have defined your own set of attributes.

Overrides:
getFormatParameters in class BaseException
Returns:
array of arguments for MessageFormat


Copyright © 2005-2011 ELCA. All Rights Reserved.