org.netbeans.modules.j2ee.dd.api.common
Class NameAlreadyUsedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.netbeans.modules.j2ee.dd.api.common.NameAlreadyUsedException
- All Implemented Interfaces:
- Serializable
public class NameAlreadyUsedException
- extends Exception
Exception for cases when adding a new element should be prevented for avoiding duplicity.
See : CreateCapability.addBean(java.lang.String, java.lang.String[], java.lang.Object[], java.lang.String) method.
- See Also:
- Serialized Form
NameAlreadyUsedException
public NameAlreadyUsedException(String beanName,
String keyProperty,
String keyValue)
- Constructor NameAlreadyUsedException
- Parameters:
beanName - name of the DD element (CommonDDBean object)keyProperty - name of the property that should be uniquekeyValue - value of the keyProperty that causes the duplicity
getMessage
public String getMessage()
- Returns the localized message
- Overrides:
getMessage in class Throwable
- Returns:
- localized message describing the problem.