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 newProperty = newTboxModel.getOntProperty(propObj.getDestinationURI());
|
||||
|
||||
if (oldProperty == null || newProperty == null) {
|
||||
logger.logError(" expects non-null old property and new property "
|
||||
+ "URIs");
|
||||
if (oldProperty == null) {
|
||||
logger.logError("didn't find the " + propObj.getSourceURI() + " property in the old TBox");
|
||||
return;
|
||||
}
|
||||
|
||||
if (newProperty == null) {
|
||||
logger.logError("didn't find the " + propObj.getDestinationURI() + " property in the new TBox");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ public class OntologyUpdater {
|
|||
} catch (Exception e) {
|
||||
logger.logError(this.getClass().getName() +
|
||||
".performSparqlConstructs() unable to execute " +
|
||||
"query at " + sparqlFile);
|
||||
"query at " + sparqlFile + ". Error message is: " + e.getMessage());
|
||||
}
|
||||
} catch (FileNotFoundException fnfe) {
|
||||
logger.logError(this.getClass().getName() +
|
||||
|
|
Loading…
Add table
Reference in a new issue