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