All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.commons.datasource.poolservice.DataSourceNotFoundException Maven / Gradle / Ivy

/* Copyright 1997-2006 Day Management AG
 * Barfuesserplatz 6, 4001 Basel, Switzerland
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Day Management AG, ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Day.
 */
package com.day.commons.datasource.poolservice;

/** Indicate that no datasource could be found with
 *  the required name.
 */
@SuppressWarnings("serial")
public class DataSourceNotFoundException extends Exception {
    public DataSourceNotFoundException(String dataSourceName, int nProviders) {
        super("No data source found with name '" + dataSourceName + "' (after asking " + nProviders + " providers)");
    }

    public DataSourceNotFoundException(String reason, Throwable cause) {
        super(reason, cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy