ch.elca.el4j.core.exceptions
Class DuplicatedFieldException

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.DuplicatedFieldException
All Implemented Interfaces:
Serializable

Deprecated. Spring data access exception will be used.

public class DuplicatedFieldException
extends BaseException

This exception will be thrown when a field, which has to be unique, has already the same value as the given.

Author:
Martin Zeltner (MZE)
See Also:
DataIntegrityViolationException, Serialized Form
File-location:
DuplicatedFieldException
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Field Summary
static String EXCEPTION_MESSAGE_FIELDDUPLICATED
          Deprecated. Message, which has to be formated.
protected  String m_fieldName
          Deprecated. Name of the field, which would be duplicated.
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
DuplicatedFieldException(String objectName, String fieldName)
          Deprecated. Constructor.
DuplicatedFieldException(String objectName, String fieldName, Throwable cause)
          Deprecated. Constructor.
 
Method Summary
 String getFieldName()
          Deprecated.  
 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_FIELDDUPLICATED

public static final String EXCEPTION_MESSAGE_FIELDDUPLICATED
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.


m_fieldName

protected String m_fieldName
Deprecated. 
Name of the field, which would be duplicated.

Constructor Detail

DuplicatedFieldException

public DuplicatedFieldException(String objectName,
                                String fieldName)
Deprecated. 
Constructor.

Parameters:
objectName - Is the name of the object, where the exception occured.
fieldName - Is the name of the field, which would be duplicated.

DuplicatedFieldException

public DuplicatedFieldException(String objectName,
                                String fieldName,
                                Throwable cause)
Deprecated. 
Constructor.

Parameters:
objectName - Is the name of the object, where the exception occured.
fieldName - Is the name of the field, which would be duplicated.
cause - Is the cause for this exception.
Method Detail

getObjectName

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

getFieldName

public String getFieldName()
Deprecated. 
Returns:
Returns the fieldName.

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.