org.omg.CORBA

Class Environment

public abstract class Environment extends Object

A container for an exception, that has been thrown by the method of the CORBA object.
Method Summary
abstract voidclear()
Removes the exception object from this container.
abstract Exceptionexception()
Returns an exception, enclosed in this container.
abstract voidexception(Exception except)
Inserts the given exception into this container.

Method Detail

clear

public abstract void clear()
Removes the exception object from this container.

exception

public abstract Exception exception()
Returns an exception, enclosed in this container.

Returns: the enclosed exception or null if no any exception has been thrown or {@link #clear()} has been previously called.

exception

public abstract void exception(Exception except)
Inserts the given exception into this container.

Parameters: except the exception to insert.