org.netbeans.modules.j2ee.deployment.common.api
Class DatasourceAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.modules.j2ee.deployment.common.api.DatasourceAlreadyExistsException
All Implemented Interfaces:
Serializable

public final class DatasourceAlreadyExistsException
extends Exception

Indicates conflict between the data sources being deployed/saved and the existing ones.

Since:
1.15
See Also:
Serialized Form

Constructor Summary
DatasourceAlreadyExistsException(Datasource datasource)
          Creates new DatasourceAlreadyExistsException with the conflicting data source
DatasourceAlreadyExistsException(List<Datasource> datasources)
          Creates new DatasourceAlreadyExistsException with the list of conflicting data sources
 
Method Summary
 List<Datasource> getDatasources()
          Returns list of conflicting data sources
 
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

DatasourceAlreadyExistsException

public DatasourceAlreadyExistsException(List<Datasource> datasources)
Creates new DatasourceAlreadyExistsException with the list of conflicting data sources

Parameters:
datasources - the list of conflicting data sources
Throws:
NullPointerException - if the datasources argument is null

DatasourceAlreadyExistsException

public DatasourceAlreadyExistsException(Datasource datasource)
Creates new DatasourceAlreadyExistsException with the conflicting data source

Parameters:
datasource - the conflicting data source
Method Detail

getDatasources

public List<Datasource> getDatasources()
Returns list of conflicting data sources

Returns:
list of conflicting data sources

 

Built on March 27 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.