1 |
/* |
/* UnknownHostException.java -- wraps java.net.UnknownHostException in RMI |
2 |
Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. |
Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
37 |
|
|
38 |
package java.rmi; |
package java.rmi; |
39 |
|
|
40 |
public class UnknownHostException |
/** |
41 |
extends RemoteException { |
* Thrown if a java.net.UnknownHostException occurs during a remote |
42 |
|
* procedure call. |
43 |
public UnknownHostException(String s) { |
* |
44 |
super(s); |
* @author unknown |
45 |
} |
* @since 1.1 |
46 |
|
* @status updated to 1.4 |
47 |
public UnknownHostException(String s, Exception e) { |
*/ |
48 |
super(s, e); |
public class UnknownHostException extends RemoteException |
49 |
} |
{ |
50 |
|
/** |
51 |
|
* Compatible with JDK 1.1+. |
52 |
|
*/ |
53 |
|
private static final long serialVersionUID = -8152710247442114228L; |
54 |
|
|
55 |
|
/** |
56 |
|
* Create an exception with a message. |
57 |
|
* |
58 |
|
* @param s the message |
59 |
|
*/ |
60 |
|
public UnknownHostException(String s) |
61 |
|
{ |
62 |
|
super(s); |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* Create an exception with a message and a cause. |
67 |
|
* |
68 |
|
* @param s the message |
69 |
|
* @param e the cause |
70 |
|
*/ |
71 |
|
public UnknownHostException(String s, Exception e) |
72 |
|
{ |
73 |
|
super(s, e); |
74 |
|
} |
75 |
} |
} |