Skip to content

Commit 196cdef

Browse files
committed
AbstractMarshaller uses general exception message in extracted buildDocument() method
Issue: SPR-11635 (cherry picked from commit f7a17ad)
1 parent a167a1b commit 196cdef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-oxm/src/main/java/org/springframework/oxm/support/AbstractMarshaller.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public boolean isProcessExternalEntities() {
9999

100100

101101
/**
102-
* Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory}.
102+
* Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory},
103+
* as a placeholder for a DOM node.
103104
* @see #createDocumentBuilderFactory()
104105
* @see #createDocumentBuilder(DocumentBuilderFactory)
105106
*/
@@ -114,8 +115,7 @@ protected Document buildDocument() {
114115
return documentBuilder.newDocument();
115116
}
116117
catch (ParserConfigurationException ex) {
117-
throw new UnmarshallingFailureException(
118-
"Could not create document placeholder for DOMSource: " + ex.getMessage(), ex);
118+
throw new UnmarshallingFailureException("Could not create document placeholder: " + ex.getMessage(), ex);
119119
}
120120
}
121121

0 commit comments

Comments
 (0)