XmlSchemaObject schemaType)
throws CorbaBindingException {
if (schemaType == null) {
throw new CorbaBindingException("Couldn't find xml schema object for : " + idlType);
}
CorbaExceptionHandler obj = null;
try {
Exception exType = (Exception) CorbaUtils.getCorbaType(idlType, typeMaps);
StartElement exStartEl = reader.nextEvent().asStartElement();
obj = new CorbaExceptionHandler(exStartEl.getName(), idlType, tc, exType);
XmlSchemaComplexType ctype = (XmlSchemaComplexType) schemaType;
XmlSchemaGroupBase group = (XmlSchemaGroupBase) ctype.getParticle();
List<MemberType> exMembers = exType.getMember();
for (int i = 0; i < exMembers.size(); ++i) {
CorbaObjectHandler member = readObjectFromStax(reader,
exMembers.get(i).getIdltype(),
group.getItems().getItem(i),
true);
obj.addMember(member);
}
reader.nextEvent().asEndElement();
} catch (java.lang.Exception ex) {
LOG.log(Level.SEVERE, "Received exception while reading object of type " + idlType);
throw new CorbaBindingException("Error while reading exception corba type", ex);