首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iText DocumentException

iText DocumentException
EN

Stack Overflow用户
提问于 2014-03-27 00:43:28
回答 1查看 1.1K关注 0票数 0

什么时候发生DocumentException (iText)?我正在尝试记录我的代码,并且我想在@throws DocumentException标记之后添加一些解释。我在API中没有找到任何东西。

EN

回答 1

Stack Overflow用户

发布于 2020-04-24 03:58:41

文档未打开时(已关闭或尚未打开)。

深入研究反编译后的源代码,我发现以下几行代码:

代码语言:javascript
复制
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");
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22667659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档