public class PdfException extends Exception
PdfDocument,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
REASON_BAD_FORMAT
Invalid PDF format.
|
static int |
REASON_ENCRYPTION
PDF encryption.
|
static int |
REASON_FILE_WRITE_ACCESS
File write access error.
|
static int |
REASON_GENERAL
General error.
|
static int |
REASON_INVALID_PASSWORD
Invalid PDF password.
|
static int |
REASON_IO
IO error.
|
| Constructor and Description |
|---|
PdfException(String message,
int reason) |
PdfException(String message,
Throwable cause,
int reason) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
int |
getReason()
Returns reason code of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int REASON_GENERAL
public static final int REASON_IO
public static final int REASON_FILE_WRITE_ACCESS
public static final int REASON_BAD_FORMAT
public static final int REASON_INVALID_PASSWORD
public static final int REASON_ENCRYPTION
public PdfException(String message, int reason)
public int getReason()
public String getMessage()
getMessage in class Throwable