1 |
/* |
/* AlreadyBoundException.java -- thrown if a binding is already bound |
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 AlreadyBoundException |
/** |
41 |
extends Exception { |
* Thrown on an attempt to bind an object in the registry that is already |
42 |
|
* bound. |
43 |
public AlreadyBoundException() { |
* |
44 |
super(); |
* @author unknown |
45 |
} |
* @see Naming#bind(String, Remote) |
46 |
|
* @see Registry#bind(String, Remote) |
47 |
public AlreadyBoundException(String s) { |
* @since 1.1 |
48 |
super (s); |
* @status updated to 1.4 |
49 |
} |
*/ |
50 |
|
public class AlreadyBoundException extends Exception |
51 |
|
{ |
52 |
|
/** |
53 |
|
* Compatible with JDK 1.1+. |
54 |
|
*/ |
55 |
|
private static final long serialVersionUID = 9218657361741657110L; |
56 |
|
|
57 |
|
/** |
58 |
|
* Create an exception with no message. |
59 |
|
*/ |
60 |
|
public AlreadyBoundException() |
61 |
|
{ |
62 |
|
} |
63 |
|
|
64 |
|
/** |
65 |
|
* Create an exception with a message. |
66 |
|
* |
67 |
|
* @param s the message |
68 |
|
*/ |
69 |
|
public AlreadyBoundException(String s) |
70 |
|
{ |
71 |
|
super(s); |
72 |
|
} |
73 |
} |
} |