org.netbeans.modules.j2ee.deployment.common.api
Class DatasourceAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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
getDatasources
public List<Datasource> getDatasources()
- Returns list of conflicting data sources
- Returns:
- list of conflicting data sources