1. /*
  2. * @(#)UnknownUserException.java 1.20 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * A class that contains user exceptions returned by the server.
  10. * When the client uses the DII to make an invocation, any user exception
  11. * returned from the server is enclosed in an <code>Any</code> object contained in the
  12. * <code>UnknownUserException</code> object. This is available from the
  13. * <code>Environment</code> object returned by the method <code>Request.env</code>.
  14. *
  15. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  16. * Java IDL exceptions</A>
  17. * @see Request
  18. */
  19. public final class UnknownUserException extends UserException {
  20. /** The <code>Any</code> instance that contains the actual user exception thrown
  21. * by the server.
  22. * @serial
  23. */
  24. public Any except;
  25. /**
  26. * Constructs an <code>UnknownUserException</code> object.
  27. */
  28. public UnknownUserException() {
  29. super();
  30. }
  31. /**
  32. * Constructs an <code>UnknownUserException</code> object that contains the given
  33. * <code>Any</code> object.
  34. *
  35. * @ param a an <code>Any</code> object that contains a user exception returned
  36. * by the server
  37. */
  38. public UnknownUserException(Any a) {
  39. super();
  40. except = a;
  41. }
  42. }