public class ExceptionHolderImpl extends ExceptionHolder implements org.jacorb.config.Configurable
org.omg.Messaging.ExceptionHolder. An instance of this
type is used to pass an exception to a reply handler.byte_order, is_system_exception, marshaled_exception| Constructor and Description |
|---|
ExceptionHolderImpl()
No-arg constructor for demarshaling.
|
ExceptionHolderImpl(ReplyInputStream inputStream)
Constructs an ExceptionHolderImpl object from an input stream.
|
ExceptionHolderImpl(SystemException exception) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.jacorb.config.Configuration configuration) |
UserException |
exceptionFromHelper(java.lang.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.
|
void |
raise_exception_with_list(ExceptionList exc_list) |
void |
raise_exception() |
java.lang.String |
toString()
For testing.
|
_read, _truncatable_ids, _type, _writepublic ExceptionHolderImpl()
public ExceptionHolderImpl(ReplyInputStream inputStream)
public ExceptionHolderImpl(SystemException exception)
public void configure(org.jacorb.config.Configuration configuration)
throws org.jacorb.config.ConfigurationException
configure in interface org.jacorb.config.Configurableorg.jacorb.config.ConfigurationExceptionpublic void raise_exception()
throws UserException
raise_exception in class ExceptionHolderUserExceptionpublic void raise_exception_with_list(ExceptionList exc_list) throws UserException
raise_exception_with_list in class ExceptionHolderUserExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic UserException exceptionFromHelper(java.lang.String id, InputStream input) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic byte[] marshal()