1 |
/* ConnectionEvent.java |
/* ConnectionEvent.java |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
46 |
*/ |
*/ |
47 |
public class ConnectionEvent extends EventObject |
public class ConnectionEvent extends EventObject |
48 |
{ |
{ |
49 |
private SQLException sqlException; |
private static final long serialVersionUID = -4843217645290030002L; |
50 |
|
|
51 |
|
// Note that the name is chosen for serialization. |
52 |
|
private SQLException ex; |
53 |
|
|
54 |
/** |
/** |
55 |
* @since 1.4 |
* @since 1.4 |
56 |
*/ |
*/ |
65 |
public ConnectionEvent(PooledConnection con, SQLException ex) |
public ConnectionEvent(PooledConnection con, SQLException ex) |
66 |
{ |
{ |
67 |
super(con); |
super(con); |
68 |
this.sqlException = ex; |
this.ex = ex; |
69 |
} |
} |
70 |
|
|
71 |
/** |
/** |
73 |
*/ |
*/ |
74 |
public SQLException getSQLException() |
public SQLException getSQLException() |
75 |
{ |
{ |
76 |
return sqlException; |
return ex; |
77 |
} |
} |
78 |
} |
} |