public class ExceptionHolderImpl extends ExceptionHolder implements 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(ORB orb)
No-arg constructor for demarshaling.
|
ExceptionHolderImpl(ORB orb,
ReplyInputStream inputStream)
Constructs an ExceptionHolderImpl object from an input stream.
|
ExceptionHolderImpl(ORB orb,
SystemException exception) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
UserException |
exceptionFromHelper(String repositoryID,
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_with_list(TypeCode[] exc_list) |
void |
raise_exception() |
String |
toString()
For testing.
|
_read, _truncatable_ids, _type, _write
public ExceptionHolderImpl(ORB orb)
public ExceptionHolderImpl(ORB orb, ReplyInputStream inputStream)
public ExceptionHolderImpl(ORB orb, SystemException exception)
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void raise_exception_with_list(TypeCode[] exc_list) throws UserException
raise_exception_with_list
in class ExceptionHolder
UserException
public void raise_exception() throws UserException
raise_exception
in class ExceptionHolder
UserException
public void raise_exception_with_list(ExceptionList exc_list) throws UserException
UserException
public UserException exceptionFromHelper(String repositoryID, InputStream input) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public byte[] marshal()
Copyright © 2017 JacORB. All rights reserved.