提交 196cdef1 编写于 作者: J Juergen Hoeller

AbstractMarshaller uses general exception message in extracted buildDocument() method

Issue: SPR-11635
(cherry picked from commit f7a17add)
上级 a167a1b5
......@@ -99,7 +99,8 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller {
/**
* Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory}.
* Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory},
* as a placeholder for a DOM node.
* @see #createDocumentBuilderFactory()
* @see #createDocumentBuilder(DocumentBuilderFactory)
*/
......@@ -114,8 +115,7 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller {
return documentBuilder.newDocument();
}
catch (ParserConfigurationException ex) {
throw new UnmarshallingFailureException(
"Could not create document placeholder for DOMSource: " + ex.getMessage(), ex);
throw new UnmarshallingFailureException("Could not create document placeholder: " + ex.getMessage(), ex);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册