1. /*
  2. * @(#)ServerException.java 1.15 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. package java.rmi;
  8. /**
  9. * A <code>ServerException</code> is thrown as a result of a remote method
  10. * invocation when a <code>RemoteException</code> is thrown while processing
  11. * the invocation on the server, either while unmarshalling the arguments or
  12. * executing the remote method itself.
  13. *
  14. * A <code>ServerException</code> instance contains the original
  15. * <code>RemoteException</code> that occurred as its cause.
  16. *
  17. * @version 1.15, 12/19/03
  18. * @author Ann Wollrath
  19. * @since JDK1.1
  20. */
  21. public class ServerException extends RemoteException {
  22. /* indicate compatibility with JDK 1.1.x version of class */
  23. private static final long serialVersionUID = -4775845313121906682L;
  24. /**
  25. * Constructs a <code>ServerException</code> with the specified
  26. * detail message.
  27. *
  28. * @param s the detail message
  29. * @since JDK1.1
  30. */
  31. public ServerException(String s) {
  32. super(s);
  33. }
  34. /**
  35. * Constructs a <code>ServerException</code> with the specified
  36. * detail message and nested exception.
  37. *
  38. * @param s the detail message
  39. * @param ex the nested exception
  40. * @since JDK1.1
  41. */
  42. public ServerException(String s, Exception ex) {
  43. super(s, ex);
  44. }
  45. }