/* * Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package org.omg.CORBA; /** * A container (holder) for an exception that is used in Request * operations to make exceptions available to the client. An * Environment object is created with the ORB * method create_environment. * * @since JDK1.2 */ public abstract class Environment { /** * Retrieves the exception in this Environment object. * * @return the exception in this Environment object */ public abstract java.lang.Exception exception(); /** * Inserts the given exception into this Environment object. * * @param except the exception to be set */ public abstract void exception(java.lang.Exception except); /** * Clears this Environment object of its exception. */ public abstract void clear(); }