public class PDFNetException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static long |
e_error_credentials |
static long |
e_error_general |
static long |
e_error_network |
static long |
e_error_num |
Constructor and Description |
---|
PDFNetException(java.lang.String cond_expr,
long line_number,
java.lang.String file_name,
java.lang.String function,
java.lang.String message)
Instantiates a new PDFNetException.
|
PDFNetException(java.lang.String cond_expr,
long line_number,
java.lang.String file_name,
java.lang.String function,
java.lang.String message,
long error_code)
Instantiates a new PDFNetException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCondExpr()
Get the conditional expression that caused the exception
|
long |
getErrorCode()
Get the line number indicating where the exception occurred.
|
java.lang.String |
getFileName()
Get the filename indicating where the exception occurred.
|
java.lang.String |
getFunction()
Get the function name where the exception occurred.
|
int |
getLineNumber()
Get the line number indicating where the exception occurred.
|
java.lang.String |
getMessage()
Get the detailed error message.
|
java.lang.String |
toString()
String representation of PDFNetException object
|
public static final long e_error_general
public static final long e_error_network
public static final long e_error_credentials
public static final long e_error_num
public PDFNetException(java.lang.String cond_expr, long line_number, java.lang.String file_name, java.lang.String function, java.lang.String message)
cond_expr
- conditional expression that failed.line_number
- the line number where the exception occurredfile_name
- the file name where the exception occurredfunction
- the function in which the exception occurredmessage
- the detailed error message.public PDFNetException(java.lang.String cond_expr, long line_number, java.lang.String file_name, java.lang.String function, java.lang.String message, long error_code)
cond_expr
- conditional expression that failed.line_number
- the line number where the exception occurredfile_name
- the file name where the exception occurredfunction
- the function in which the exception occurredmessage
- the detailed error message.error_code
- the type of exception.public java.lang.String getCondExpr()
public java.lang.String getFileName()
public int getLineNumber()
public java.lang.String getFunction()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public long getErrorCode()
public java.lang.String toString()
toString
in class java.lang.Throwable