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
errCodeA specified error code. This should be one of constant definitions PDFException.

◆ 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
errCodeA specified error code. This should be one of constant definitions com.foxit.sdk.common.Constants.
errMsgA specified error message.

Member Function Documentation

◆ getLastError()

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

Get current error code.

Returns
Current error code. It would be one of constant definitions com.foxit.sdk.common.Constants.

◆ getMessage()

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

Get current error message.

Returns
Current error message.