1. /*
  2. * @(#)ServerException.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 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>ServerException</code> is thrown as a result of a remote method call
  10. * if the execution of the remote method on the server machine throws a
  11. * <code>RemoteException</code>.
  12. *
  13. * @version 1.8, 11/29/01
  14. * @author Ann Wollrath
  15. * @since JDK1.1
  16. */
  17. public class ServerException extends RemoteException {
  18. /* indicate compatibility with JDK 1.1.x version of class */
  19. private static final long serialVersionUID = -4775845313121906682L;
  20. /**
  21. * Constructs a <code>ServerException</code> with the specified
  22. * detail message.
  23. *
  24. * @param s the detail message
  25. * @since JDK1.1
  26. */
  27. public ServerException(String s) {
  28. super(s);
  29. }
  30. /**
  31. * Constructs a <code>ServerException</code> with the specified
  32. * detail message and nested exception.
  33. *
  34. * @param s the detail message
  35. * @param ex the nested exception
  36. * @since JDK1.1
  37. */
  38. public ServerException(String s, Exception ex) {
  39. super(s, ex);
  40. }
  41. }