org.jacorb.orb
Class ExceptionHolderImpl
- Configurable, IDLEntity, java.io.Serializable, Streamable, StreamableValue, ValueBase
public class ExceptionHolderImpl
implements Configurable
JacORB-specific implementation of
org.omg.Messaging.ExceptionHolder
. An instance of this
type is used to pass an exception to a reply handler.
Version:
- Andre Spiegel
ExceptionHolderImpl
public ExceptionHolderImpl()
No-arg constructor for demarshaling.
ExceptionHolderImpl
public ExceptionHolderImpl(ReplyInputStream is)
Constructs an ExceptionHolderImpl object from an input stream.
It is assumed that the reply status of this input stream is
either USER_EXCEPTION or SYSTEM_EXCEPTION. If it has another
status, a RuntimeException is thrown.
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
exceptionFromHelper
public UserException exceptionFromHelper(String id,
InputStream input)
throws ClassNotFoundException,
NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
Given a repository id, tries to find a helper for the corresponding
class and uses it to unmarshal an instance of this class from
the given InputStream.
marshal
public byte[] marshal()
Marshals this object into a new buffer and returns that buffer.
toString
public String toString()
For testing.