1 |
/* |
/* SocketSecurityException.java -- the socket could not be created |
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.server; |
package java.rmi.server; |
39 |
|
|
40 |
import java.rmi.server.ExportException; |
/** |
41 |
|
* Thrown during remote object export if the code does not have permission |
42 |
public class SocketSecurityException |
* to create a <code>java.net.ServerSocket</code> on the specified port. |
43 |
extends ExportException { |
* |
44 |
|
* @author unknown |
45 |
public SocketSecurityException(String s) { |
* @since 1.1 |
46 |
super(s); |
* @status updated to 1.4 |
47 |
} |
*/ |
48 |
|
public class SocketSecurityException extends ExportException |
49 |
public SocketSecurityException(String s, Exception e) { |
{ |
50 |
super(s, e); |
/** |
51 |
} |
* Compatible with JDK 1.1+. |
52 |
|
*/ |
53 |
|
private static final long serialVersionUID = -7622072999407781979L; |
54 |
|
|
55 |
|
/** |
56 |
|
* Create an exception with the specified message. |
57 |
|
* |
58 |
|
* @param s the message |
59 |
|
*/ |
60 |
|
public SocketSecurityException(String s) |
61 |
|
{ |
62 |
|
super(s); |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* Create an exception with the specified message and cause. |
67 |
|
* |
68 |
|
* @param s the message |
69 |
|
* @param e the cause |
70 |
|
*/ |
71 |
|
public SocketSecurityException(String s, Exception e) |
72 |
|
{ |
73 |
|
super(s, e); |
74 |
|
} |
75 |
} |
} |