java.lang.Object | |||
↳ | java.lang.Throwable | ||
↳ | java.lang.Exception | ||
↳ | com.pdftron.common.PDFNetException |
PDFNetException is derived from the standard exception class and it is a superclass for all PDFNet library exceptions. PDFNetException and its subclasses have two constructors: one that takes no arguments and one that takes a string argument that can be used to report an error message.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | e_error_credentials | ||||||||||
long | e_error_general | ||||||||||
long | e_error_network | ||||||||||
long | e_error_num |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PDFNetException(String cond_expr, long line_number, String file_name, String function, String message)
Instantiates a new PDFNetException.
| |||||||||||
PDFNetException(String cond_expr, long line_number, String file_name, String function, String message, long error_code)
Instantiates a new PDFNetException.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getCondExpr()
Get the conditional expression that caused the exception
| ||||||||||
long |
getErrorCode()
Get the line number indicating where the exception occurred.
| ||||||||||
String |
getFileName()
Get the filename indicating where the exception occurred.
| ||||||||||
String |
getFunction()
Get the function name where the exception occurred.
| ||||||||||
int |
getLineNumber()
Get the line number indicating where the exception occurred.
| ||||||||||
String |
getMessage()
Get the detailed error message.
| ||||||||||
String |
toString()
String representation of PDFNetException object
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Instantiates a new PDFNetException.
cond_expr | conditional expression that failed. |
---|---|
line_number | the line number where the exception occurred |
file_name | the file name where the exception occurred |
function | the function in which the exception occurred |
message | the detailed error message. |
Instantiates a new PDFNetException.
cond_expr | conditional expression that failed. |
---|---|
line_number | the line number where the exception occurred |
file_name | the file name where the exception occurred |
function | the function in which the exception occurred |
message | the detailed error message. |
error_code | the type of exception. |
Get the conditional expression that caused the exception
Get the line number indicating where the exception occurred.
Get the filename indicating where the exception occurred.
Get the function name where the exception occurred.
Get the line number indicating where the exception occurred.
Get the detailed error message.
String representation of PDFNetException object