public class PDFException
extends java.lang.Exception
PDFException
is a special kind of Exception
.
Class PDFException
defines the specific exceptions the program
may throw.
The SDK returns the error code to caller in this manner, 0 indicates normal
success status, positive value means current running status, and negative
value means a failure.
It can be constructed by the following way.
Example:
PDFException exception = new PDFException(ERRCODE_ERROR);
Exception
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ERRCODE_BUFFEROVERFLOW
Buffer is overflow, need more spaces.
|
static int |
ERRCODE_CONFLICT
Data or values conflict.
|
static int |
ERRCODE_DATANOTREADY
Data not ready.
|
static int |
ERRCODE_ERROR
Error of any kinds, without specific reason.
|
static int |
ERRCODE_FILE
File access error, cannot read or write file data.
|
static int |
ERRCODE_FORMAT
Data format error.
|
static int |
ERRCODE_HANDLER
Callback functions error in handler.
|
static int |
ERRCODE_INVALIDCERTIFICATE
Incorrect certificate or its data error.
|
static int |
ERRCODE_INVALIDHANDLE
The current object handle is an error.
|
static int |
ERRCODE_INVALIDLICENSE
License authorization error.
|
static int |
ERRCODE_INVALIDMANAGER
Invalid Foxit PDF SDK manager.
|
static int |
ERRCODE_INVALIDMODULE
Invalid module or module uninitialized.
|
static int |
ERRCODE_INVALIDTYPE
Invalid object type.
|
static int |
ERRCODE_MEMORYREBUILT
Memory is rebuilt.
|
static int |
ERRCODE_NOTFOUND
Data cannot be found.
|
static int |
ERRCODE_NOTPARSED
Contents are not parsed.
|
static int |
ERRCODE_OUTOFMEMORY
Out of memory.
|
static int |
ERRCODE_PARAM
Parameter error.
|
static int |
ERRCODE_PASSWORD
Incorrect password.
|
static int |
ERRCODE_SUCCESS
Successful.
|
static int |
ERRCODE_UNKNOWNHANDLER
Unknown handler or cannot find availably one.
|
static int |
ERRCODE_UNKNOWNSECURITYHANDLER
Unknown security handler or cannot find availably one.
|
static int |
ERRCODE_UNKNOWNSTATE
State error or unknown.
|
static int |
ERRCODE_UNRECOVERABLE
The function can't be recovered.
|
static int |
ERRCODE_UNSUPPORTED
Some features are not implemented, cannot be used, usually for user-side
callback functions.
|
Constructor and Description |
---|
PDFException(int exception)
Constructs a new
PDFException object with the specified error
codes. |
Modifier and Type | Method and Description |
---|---|
int |
getLastError()
Get current error code.
|
public static final int ERRCODE_INVALIDHANDLE
public static final int ERRCODE_SUCCESS
public static final int ERRCODE_ERROR
public static final int ERRCODE_INVALIDMANAGER
public static final int ERRCODE_INVALIDMODULE
public static final int ERRCODE_UNRECOVERABLE
public static final int ERRCODE_OUTOFMEMORY
public static final int ERRCODE_PASSWORD
public static final int ERRCODE_FORMAT
public static final int ERRCODE_FILE
public static final int ERRCODE_PARAM
public static final int ERRCODE_INVALIDLICENSE
public static final int ERRCODE_HANDLER
public static final int ERRCODE_UNKNOWNSECURITYHANDLER
public static final int ERRCODE_INVALIDCERTIFICATE
public static final int ERRCODE_NOTFOUND
public static final int ERRCODE_INVALIDTYPE
public static final int ERRCODE_UNSUPPORTED
public static final int ERRCODE_NOTPARSED
public static final int ERRCODE_UNKNOWNSTATE
public static final int ERRCODE_BUFFEROVERFLOW
public static final int ERRCODE_CONFLICT
public static final int ERRCODE_DATANOTREADY
public static final int ERRCODE_MEMORYREBUILT
public static final int ERRCODE_UNKNOWNHANDLER