org.squashtest.csp.tm.domain
Class DuplicateNameException

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.domain.DuplicateNameException
All Implemented Interfaces:
Serializable, org.squashtest.tm.core.foundation.i18n.Internationalizable

public class DuplicateNameException
extends DomainException

/!\ This exception is used both for renaming clashes and new entity name clash. You should favor the use of NameAlreadyInUseException for new entities

See Also:
Serialized Form

Constructor Summary
DuplicateNameException()
          Reports an error on the name, hence the setField("name");
DuplicateNameException(String message)
          Reports an error on the name, hence the setField("name");
DuplicateNameException(String oldName, String newName)
          Reports an error on the name, hence the setField("name");
 
Method Summary
 String getI18nKey()
           
 
Methods inherited from class org.squashtest.csp.tm.domain.DomainException
getDefaultMessage, getField, getI18nParams, 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

DuplicateNameException

public DuplicateNameException(String oldName,
                              String newName)
Reports an error on the name, hence the setField("name");

Parameters:
oldName - : oldName to display on the exception message.
newName - : new name to display on the exception message.

DuplicateNameException

public DuplicateNameException()
Reports an error on the name, hence the setField("name");


DuplicateNameException

public DuplicateNameException(String message)
Reports an error on the name, hence the setField("name");

Parameters:
message - : the exception message.
Method Detail

getI18nKey

public String getI18nKey()


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