You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2022/01/24 17:39:57 UTC
[jena] branch main updated: LiteralLabelImpl: forward Throwable instead of only the message to preserve causes
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new f7b7504 LiteralLabelImpl: forward Throwable instead of only the message to preserve causes
new f7af657 Merge pull request #1170 from jmkeil/master
f7b7504 is described below
commit f7b75047877a7b4b9f313d7f62ecc3677ea32ee5
Author: Jan Martin Keil <ja...@uni-jena.de>
AuthorDate: Fri Jan 21 08:06:35 2022 +0100
LiteralLabelImpl: forward Throwable instead of only the message to preserve causes
---
.../main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
index 99533ae..cb54338 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
@@ -78,10 +78,10 @@ final /*public*/ class LiteralLabelImpl implements LiteralLabel {
private boolean wellformed = true;
/**
- * keeps the message provided by the DatatypeFormatException
- * if parsing failed for delayed exception thrown in getValue()
+ * keeps the DatatypeFormatException if parsing failed for delayed
+ * exception thrown in getValue()
*/
- private String exceptionMsg = null; // Suggested by Andreas Langegger
+ private Throwable exception = null;
//=======================================================================
// Constructors
@@ -223,7 +223,7 @@ final /*public*/ class LiteralLabelImpl implements LiteralLabel {
throw e;
} else {
wellformed = false;
- exceptionMsg = e.getMessage();
+ exception = e;
}
}
}
@@ -383,7 +383,7 @@ final /*public*/ class LiteralLabelImpl implements LiteralLabel {
throw new DatatypeFormatException(
lexicalForm,
dtype,
- exceptionMsg);
+ exception);
}
}