]> git.mxchange.org Git - jaddressbook-lib.git/blob - Addressbook/src/org/mxchange/addressbook/exceptions/UnsupportedDatabaseDriverException.java
Moved a lot classes and interfaces (generalized) to new jcore project + added a few...
[jaddressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / exceptions / UnsupportedDatabaseDriverException.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.addressbook.exceptions;
18
19 import java.text.MessageFormat;
20
21 /**
22  * Thrown when the given driver is not found
23  *
24  * @author Roland Haeder
25  */
26 public class UnsupportedDatabaseDriverException extends Exception {
27
28         /**
29          * Default constructor with driver name
30          * @param driverName 
31          */
32         public UnsupportedDatabaseDriverException (final String driverName) {
33                 // Call super method
34                 super(MessageFormat.format("Database driver {0} is not found.", driverName));
35         }
36         
37 }