1. /*
  2. * @(#)ServerException.java 1.9 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi;
  11. /**
  12. * A <code>ServerException</code> is thrown as a result of a remote method call
  13. * if the execution of the remote method on the server machine throws a
  14. * <code>RemoteException</code>.
  15. *
  16. * @version 1.9, 02/02/00
  17. * @author Ann Wollrath
  18. * @since JDK1.1
  19. */
  20. public class ServerException extends RemoteException {
  21. /* indicate compatibility with JDK 1.1.x version of class */
  22. private static final long serialVersionUID = -4775845313121906682L;
  23. /**
  24. * Constructs a <code>ServerException</code> with the specified
  25. * detail message.
  26. *
  27. * @param s the detail message
  28. * @since JDK1.1
  29. */
  30. public ServerException(String s) {
  31. super(s);
  32. }
  33. /**
  34. * Constructs a <code>ServerException</code> with the specified
  35. * detail message and nested exception.
  36. *
  37. * @param s the detail message
  38. * @param ex the nested exception
  39. * @since JDK1.1
  40. */
  41. public ServerException(String s, Exception ex) {
  42. super(s, ex);
  43. }
  44. }