org.squashtest.csp.tm.internal.service.customField
Class NameAlreadyInUseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.squashtest.csp.tm.domain.DomainException
                  extended by org.squashtest.csp.tm.internal.service.customField.NameAlreadyInUseException
All Implemented Interfaces:
Serializable, org.squashtest.tm.core.foundation.i18n.Internationalizable

public class NameAlreadyInUseException
extends DomainException

This should be raised when a transient entity name is already used by another entity.

Author:
Gregory Fouquet
See Also:
Serialized Form

Constructor Summary
NameAlreadyInUseException(String entityName, String name)
           
 
Method Summary
 String getEntityName()
           
 String getI18nKey()
          (non-Javadoc)
 Object[] getI18nParams()
          Can be overridden by subclasses to return the params to use when fetching the i18n'd message.
 String getName()
           
 
Methods inherited from class org.squashtest.csp.tm.domain.DomainException
getDefaultMessage, getField, getObjectName, setObjectName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameAlreadyInUseException

public NameAlreadyInUseException(String entityName,
                                 String name)
Method Detail

getI18nKey

public String getI18nKey()
(non-Javadoc)

See Also:
Internationalizable.getI18nKey()

getEntityName

public String getEntityName()
Returns:
the entityName

getName

public String getName()
Returns:
the name

getI18nParams

public Object[] getI18nParams()
Description copied from class: DomainException
Can be overridden by subclasses to return the params to use when fetching the i18n'd message.

Overrides:
getI18nParams in class DomainException
Returns:
should never return null


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.