01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ConnectionOpenErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.database.exceptions;
09:
10: public class ConnectionOpenErrorException extends DatabaseException {
11: private static final long serialVersionUID = -8963881858111262119L;
12:
13: private String mUrl = null;
14: private String mUser = null;
15: private String mPassword = null;
16:
17: public ConnectionOpenErrorException(String url, Throwable cause) {
18: super ("Couldn't connect to the database with connection url '"
19: + url + "'.", cause);
20: mUrl = url;
21: }
22:
23: public ConnectionOpenErrorException(String url, String user,
24: String password, Throwable cause) {
25: super ("Couldn't connect to the database with connection url '"
26: + url + "'.", cause);
27: mUrl = url;
28: mUser = user;
29: mPassword = password;
30: }
31:
32: public String getUrl() {
33: return mUrl;
34: }
35:
36: public String getUser() {
37: return mUser;
38: }
39:
40: public String getPassword() {
41: return mPassword;
42: }
43: }
|