Foxit PDF Conversion SDK
com.foxit.sdk.PDFException类 参考

继承自 Exception .

Public 成员函数

 PDFException (int errCode)
 
 PDFException (int errCode, String errMsg)
 
int getLastError ()
 
String getMessage ()
 

详细描述

PDFException 表示在某些错误情况下由 Foxit PDF SDK 函数抛出的错误对象。

此类提供异常的错误代码常量定义,以及从错误对象中获取错误代码或错误消息的函数。

构造及析构函数说明

◆ PDFException() [1/2]

com.foxit.sdk.PDFException.PDFException ( int  errCode)

使用指定的错误代码构造一个新的 PDFException 对象。

在异常类中使用静态常量不是一种优雅的方式! 因此不推荐使用,它可能在未来某个日期消失。

参数
[in]errCode指定的错误代码。应该是从 com.foxit.sdk.common.Constants.e_ErrSuccess 开始的值之一。

◆ PDFException() [2/2]

com.foxit.sdk.PDFException.PDFException ( int  errCode,
String  errMsg 
)

使用指定的错误代码和错误消息构造一个新的 PDFException 对象。

参数
[in]errCode指定的错误代码。应该是从 com.foxit.sdk.common.Constants.e_ErrSuccess 开始的值之一。
[in]errMsg指定的错误消息。

成员函数说明

◆ getLastError()

int com.foxit.sdk.PDFException.getLastError ( )

获取当前错误代码。

返回
当前错误代码。将是从 com.foxit.sdk.common.Constants.e_ErrSuccess 开始的值之一。

◆ getMessage()

String com.foxit.sdk.PDFException.getMessage ( )

获取当前错误消息。

返回
当前错误消息。