enhanced error messages
This commit is contained in:
parent
1bf04355a4
commit
eabec996df
2 changed files with 8 additions and 4 deletions
|
@ -424,9 +424,13 @@ public class ABoxUpdater {
|
||||||
OntProperty oldProperty = oldTboxModel.getOntProperty(propObj.getSourceURI());
|
OntProperty oldProperty = oldTboxModel.getOntProperty(propObj.getSourceURI());
|
||||||
OntProperty newProperty = newTboxModel.getOntProperty(propObj.getDestinationURI());
|
OntProperty newProperty = newTboxModel.getOntProperty(propObj.getDestinationURI());
|
||||||
|
|
||||||
if (oldProperty == null || newProperty == null) {
|
if (oldProperty == null) {
|
||||||
logger.logError(" expects non-null old property and new property "
|
logger.logError("didn't find the " + propObj.getSourceURI() + " property in the old TBox");
|
||||||
+ "URIs");
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (newProperty == null) {
|
||||||
|
logger.logError("didn't find the " + propObj.getDestinationURI() + " property in the new TBox");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class OntologyUpdater {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.logError(this.getClass().getName() +
|
logger.logError(this.getClass().getName() +
|
||||||
".performSparqlConstructs() unable to execute " +
|
".performSparqlConstructs() unable to execute " +
|
||||||
"query at " + sparqlFile);
|
"query at " + sparqlFile + ". Error message is: " + e.getMessage());
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException fnfe) {
|
} catch (FileNotFoundException fnfe) {
|
||||||
logger.logError(this.getClass().getName() +
|
logger.logError(this.getClass().getName() +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue