org.netbeans.modules.j2ee.dd/1 1.13.0 2

org.netbeans.modules.j2ee.dd.api.common
Class NameAlreadyUsedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
NameAlreadyUsedException(String beanName, String keyProperty, String keyValue)
          Constructor NameAlreadyUsedException
 
Method Summary
 String getMessage()
          Returns the localized message
 
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
 

Constructor Detail

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 unique
keyValue - value of the keyProperty that causes the duplicity
Method Detail

getMessage

public String getMessage()
Returns the localized message

Overrides:
getMessage in class Throwable
Returns:
localized message describing the problem.

org.netbeans.modules.j2ee.dd/1 1.13.0 2

Built on November 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.