java/sql-dk/src/info/globalcode/sql/dk/configuration/ConfigurationException.java
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 18:19:49 +0100
branchv_0
changeset 236 a3ec71fa8e17
parent 33 04db6ccd6c48
permissions -rw-r--r--
Avoid reusing/rewriting the DB connection properties. There was weird random errors while testing connection to multiple DB in parallel when one of them was meta connection to same DB connection. Two kinds of exception: 1) missing password 2) „Passing DB password as CLI parameter is insecure!“
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * SQL-DK
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2013 František Kučera (frantovo.cz)
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, either version 3 of the License, or
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 * (at your option) any later version.
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 *
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 * GNU General Public License for more details.
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 *
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
 */
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
package info.globalcode.sql.dk.configuration;
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
import info.globalcode.sql.dk.DKException;
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
/**
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
 *
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
 * @author Ing. František Kučera (frantovo.cz)
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
 */
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
public class ConfigurationException extends DKException {
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
	public ConfigurationException() {
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
	}
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
	public ConfigurationException(String message) {
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
		super(message);
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
	}
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
	public ConfigurationException(Throwable cause) {
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
		super(cause);
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
	}
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
	public ConfigurationException(String message, Throwable cause) {
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
		super(message, cause);
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
	}
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
}