1 /* 2 * @(#)ServerError.java 1.13 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.rmi; 9 10 /** 11 * A <code>ServerError</code> is thrown as a result of a remote method 12 * invocation when an <code>Error</code> is thrown while processing 13 * the invocation on the server, either while unmarshalling the arguments, 14 * executing the remote method itself, or marshalling the return value. 15 * 16 * A <code>ServerError</code> instance contains the original 17 * <code>Error</code> that occurred as its cause. 18 * 19 * @version 1.13, 12/19/03 20 * @author Ann Wollrath 21 * @since JDK1.1 22 */ 23 public class ServerError extends RemoteException { 24 25 /* indicate compatibility with JDK 1.1.x version of class */ 26 private static final long serialVersionUID = 8455284893909696482L; 27 28 /** 29 * Constructs a <code>ServerError</code> with the specified 30 * detail message and nested error. 31 * 32 * @param s the detail message 33 * @param err the nested error 34 * @since JDK1.1 35 */ 36 public ServerError(String s, Error err) { 37 super(s, err); 38 } 39 } 40