class CorbaObjectWriter {

    public void writeException(CorbaExceptionHandler exHandler) throws CorbaBindingException {
        Exception exType = (Exception)exHandler.getType();
        List<CorbaObjectHandler> exMembers = exHandler.getMembers();
        stream.write_string(exType.getRepositoryID());
        for (int i = 0; i < exMembers.size(); ++i) {
            this.write(exMembers.get(i));
        }
    }

    public  CorbaObjectWriter(OutputStream outStream);

}