1. /*
  2. * @(#)Environment.java 1.23 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 org.omg.CORBA;
  8. /**
  9. * A container (holder) for an exception that is used in <code>Request</code>
  10. * operations to make exceptions available to the client. An
  11. * <code>Environment</code> object is created with the <code>ORB</code>
  12. * method <code>create_environment</code>.
  13. *
  14. * @version 1.11, 09/09/97
  15. * @since JDK1.2
  16. */
  17. public abstract class Environment {
  18. /**
  19. * Retrieves the exception in this <code>Environment</code> object.
  20. *
  21. * @return the exception in this <code>Environment</code> object
  22. */
  23. public abstract java.lang.Exception exception();
  24. /**
  25. * Inserts the given exception into this <code>Environment</code> object.
  26. *
  27. * @param except the exception to be set
  28. */
  29. public abstract void exception(java.lang.Exception except);
  30. /**
  31. * Clears this <code>Environment</code> object of its exception.
  32. */
  33. public abstract void clear();
  34. }