1. /*
  2. * @(#)UnknownUserException.java 1.16 00/02/02
  3. *
  4. * Copyright 1997-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 org.omg.CORBA;
  11. /**
  12. * A class that contains user exceptions returned by the server.
  13. * When the client uses the DII to make an invocation, any user exception
  14. * returned from the server is enclosed in an <code>Any</code> object contained in the
  15. * <code>UnknownUserException</code> object. This is available from the
  16. * <code>Environment</code> object returned by the method <code>Request.env</code>.
  17. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  19. * Java IDL exceptions</A>
  20. * @see Request
  21. */
  22. public final class UnknownUserException extends UserException {
  23. /** The <code>Any</code> instance that contains the actual user exception thrown
  24. * by the server.
  25. * @serial
  26. */
  27. public Any except;
  28. /**
  29. * Constructs an <code>UnknownUserException</code> object.
  30. */
  31. public UnknownUserException() {
  32. super();
  33. }
  34. /**
  35. * Constructs an <code>UnknownUserException</code> object that contains the given
  36. * <code>Any</code> object.
  37. */
  38. public UnknownUserException(Any a) {
  39. super();
  40. except = a;
  41. }
  42. }