org.squashtest.csp.tm.domain
Class DuplicateNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.squashtest.csp.tm.domain.DomainException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getI18nKey
public String getI18nKey()
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.