什么时候发生DocumentException (iText)?我正在尝试记录我的代码,并且我想在@throws DocumentException标记之后添加一些解释。我在API中没有找到任何东西。
发布于 2020-04-24 03:58:41
文档未打开时(已关闭或尚未打开)。
深入研究反编译后的源代码,我发现以下几行代码:
if (this.close) {
throw new DocumentException("the document has been closed you cant add any elements");
} else if (!this.open) {
throw new DocumentException("the document is not open yet you can only add meta information");
}https://stackoverflow.com/questions/22667659
复制相似问题