1 |
/* |
/* MarshalException.java -- wraps error while marshalling parameters |
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 MarshalException |
/** |
41 |
extends RemoteException { |
* Thrown if an exception occurs while marshalling data to send in a remote |
42 |
|
* call. The call may not be retransmitted, if the "at most once" semantics |
43 |
|
* are to be preserved. |
44 |
public MarshalException(String s) { |
* |
45 |
super(s); |
* @author unknown |
46 |
} |
* @since 1.1 |
47 |
|
* @status updated to 1.4 |
48 |
public MarshalException(String s, Exception e) { |
*/ |
49 |
super (s, e); |
public class MarshalException extends RemoteException |
50 |
} |
{ |
51 |
|
/** |
52 |
|
* Compatible with JDK 1.1+. |
53 |
|
*/ |
54 |
|
private static final long serialVersionUID = 6223554758134037936L; |
55 |
|
|
56 |
|
/** |
57 |
|
* Create an exception with a message. |
58 |
|
* |
59 |
|
* @param s the message |
60 |
|
*/ |
61 |
|
public MarshalException(String s) |
62 |
|
{ |
63 |
|
super(s); |
64 |
|
} |
65 |
|
|
66 |
|
/** |
67 |
|
* Create an exception with a message and a cause. |
68 |
|
* |
69 |
|
* @param s the message |
70 |
|
* @param e the cause |
71 |
|
*/ |
72 |
|
public MarshalException(String s, Exception e) |
73 |
|
{ |
74 |
|
super(s, e); |
75 |
|
} |
76 |
} |
} |