|
Foxit PDF Conversion SDK
|
继承自 Exception .
Public 成员函数 | |
| PDFException (int errCode) | |
| PDFException (int errCode, String errMsg) | |
| int | getLastError () |
| String | getMessage () |
类 PDFException 表示在某些错误情况下由 Foxit PDF SDK 函数抛出的错误对象。
此类提供异常的错误代码常量定义,以及从错误对象中获取错误代码或错误消息的函数。
| com.foxit.sdk.PDFException.PDFException | ( | int | errCode | ) |
使用指定的错误代码构造一个新的 PDFException 对象。
在异常类中使用静态常量不是一种优雅的方式! 因此不推荐使用,它可能在未来某个日期消失。
| [in] | errCode | 指定的错误代码。应该是从 com.foxit.sdk.common.Constants.e_ErrSuccess 开始的值之一。 |
| com.foxit.sdk.PDFException.PDFException | ( | int | errCode, |
| String | errMsg | ||
| ) |
使用指定的错误代码和错误消息构造一个新的 PDFException 对象。
| [in] | errCode | 指定的错误代码。应该是从 com.foxit.sdk.common.Constants.e_ErrSuccess 开始的值之一。 |
| [in] | errMsg | 指定的错误消息。 |
| int com.foxit.sdk.PDFException.getLastError | ( | ) |
获取当前错误代码。
| String com.foxit.sdk.PDFException.getMessage | ( | ) |
获取当前错误消息。