Throw only DocumentException instances from IDocument implementations.