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