Foxit PDF Conversion SDK

Public Member Functions | List of all members
com.foxit.sdk.PDFException Class Reference

Inherits Exception.

## Public Member Functions
| PDFException (int errCode)
| PDFException (int errCode, String errMsg)
int | getLastError ()
String | getMessage ()

## Detailed Description

Class `PDFException` represents an errCode object thrown by Foxit PDF SDK functions for some error cases.

This class offers constant definitions of error code for exceptions and functions to get error code or error message from an errCode.

## Constructor & Destructor Documentation

## ◆ PDFException() [1/2]

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

Construct a new `PDFException` object with the specified error code.

It is not a elegant way to use static constant in the EXCEPTION CLASS! SO NOT recommended for use,it maybe disappear at some future date.

Parameters

  [in] | errCode | A specified error code. This should be one of values starting from com.foxit.sdk.common.Constants.e_ErrSuccess .

## ◆ PDFException() [2/2]

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

Construct a new `PDFException` object with the specified error code and error message.

Parameters

  [in] | errCode | A specified error code. This should be one of values starting from com.foxit.sdk.common.Constants.e_ErrSuccess .
  [in] | errMsg | A specified error message.

## Member Function Documentation

## ◆ getLastError()

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

Get current error code.

Returns
  Current error code. This would be one of values starting from com.foxit.sdk.common.Constants.e_ErrSuccess .

## ◆ getMessage()

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

Get current error message.

Returns
  Current error message.