org.jacorb.orb

Class ExceptionHolderImpl

public class ExceptionHolderImpl extends ExceptionHolder 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: $Id: ExceptionHolderImpl.java,v 1.17 2006/07/13 08:57:36 nick.cross Exp $

Author: Andre Spiegel

Constructor Summary
ExceptionHolderImpl()
No-arg constructor for demarshaling.
ExceptionHolderImpl(ReplyInputStream inputStream)
Constructs an ExceptionHolderImpl object from an input stream.
ExceptionHolderImpl(SystemException exception)
Method Summary
voidconfigure(Configuration configuration)
UserExceptionexceptionFromHelper(String id, InputStream input)
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.
byte[]marshal()
Marshals this object into a new buffer and returns that buffer.
voidraise_exception()
voidraise_exception_with_list(ExceptionList exc_list)
StringtoString()
For testing.

Constructor Detail

ExceptionHolderImpl

public ExceptionHolderImpl()
No-arg constructor for demarshaling.

ExceptionHolderImpl

public ExceptionHolderImpl(ReplyInputStream inputStream)
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.

ExceptionHolderImpl

public ExceptionHolderImpl(SystemException exception)

Method Detail

configure

public void configure(Configuration configuration)

exceptionFromHelper

public UserException exceptionFromHelper(String id, InputStream input)
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.

raise_exception

public void raise_exception()

raise_exception_with_list

public void raise_exception_with_list(ExceptionList exc_list)

toString

public String toString()
For testing.