use of org.cristalise.kernel.common.InvalidDataException in project kernel by cristal-ise.
the class SchemaCache method buildObject.
@Override
public Schema buildObject(String name, int version, ItemPath path, String data) throws InvalidDataException {
try {
Schema thisSchema = new Schema(name, version, path, data);
thisSchema.validate();
return thisSchema;
} catch (Exception ex) {
Logger.error(ex);
throw new InvalidDataException("Could not parse Schema '" + name + "' v" + version + ": " + ex.getMessage());
}
}
Aggregations