1. /*
  2. * @(#)ServerRuntimeException.java 1.18 04/05/18
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi;
  8. /**
  9. * From a server executing on JDK 1.1, a
  10. * <code>ServerRuntimeException</code> is thrown as a result of a
  11. * remote method invocation when a <code>RuntimeException</code> is
  12. * thrown while processing the invocation on the server, either while
  13. * unmarshalling the arguments, executing the remote method itself, or
  14. * marshalling the return value.
  15. *
  16. * A <code>ServerRuntimeException</code> instance contains the original
  17. * <code>RuntimeException</code> that occurred as its cause.
  18. *
  19. * <p>A <code>ServerRuntimeException</code> is not thrown from servers
  20. * executing on the Java 2 platform v1.2 or later versions.
  21. *
  22. * @version 1.18, 05/18/04
  23. * @author Ann Wollrath
  24. * @since JDK1.1
  25. * @deprecated no replacement
  26. */
  27. @Deprecated
  28. public class ServerRuntimeException extends RemoteException {
  29. /* indicate compatibility with JDK 1.1.x version of class */
  30. private static final long serialVersionUID = 7054464920481467219L;
  31. /**
  32. * Constructs a <code>ServerRuntimeException</code> with the specified
  33. * detail message and nested exception.
  34. *
  35. * @param s the detail message
  36. * @param ex the nested exception
  37. * @deprecated no replacement
  38. * @since JDK1.1
  39. */
  40. @Deprecated
  41. public ServerRuntimeException(String s, Exception ex) {
  42. super(s, ex);
  43. }
  44. }