Skip to content

Commit

Permalink
Better error handling when parsing shadows.
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Feb 24, 2016
1 parent 8a79c9b commit e3f6d51
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -1518,10 +1518,14 @@ private RefinedObjectClassDefinition applyAttributesDefinition(ProvisioningConte
attributesContainer.applyDefinition(objectClassDefinition.toResourceAttributeContainerDefinition());
}
} else {
// We need to convert <attributes> to ResourceAttributeContainer
ResourceAttributeContainer convertedContainer = ResourceAttributeContainer.convertFromContainer(
attributesContainer, objectClassDefinition);
shadow.getValue().replace(attributesContainer, convertedContainer);
try {
// We need to convert <attributes> to ResourceAttributeContainer
ResourceAttributeContainer convertedContainer = ResourceAttributeContainer.convertFromContainer(
attributesContainer, objectClassDefinition);
shadow.getValue().replace(attributesContainer, convertedContainer);
} catch (SchemaException e) {
throw new SchemaException(e.getMessage() + " in " + shadow, e);
}
}
}

Expand Down

0 comments on commit e3f6d51

Please sign in to comment.