public class SQLProcessorException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
ERR_CONNECT_STMT_SYNTAX
Error code for a
SQLProcessor error. |
static int |
ERR_DEFINE_STMT_SYNTAX
Error code for a
SQLProcessor error. |
static int |
ERR_ELSE_NOT_IN_IF
Error code for a
SQLProcessor error. |
static int |
ERR_ENDIF_MISSING
Error code for a
SQLProcessor error. |
static int |
ERR_ENDIF_NOT_IN_IF
Error code for a
SQLProcessor error. |
static int |
ERR_INVALID_ERROR_NUM
Error code for a
SQLProcessor error. |
static int |
ERR_INVALID_SYMBOL
Error code for a
SQLProcessor error. |
static int |
ERR_PREPROC_CMD_SYNTAX
Error code for a
SQLProcessor error. |
static int |
ERR_SQL_EXCEPTION
Error code for a
SQLProcessor error. |
static int |
ERR_SQL_EXCEPTION_STMT
Error code for a
SQLProcessor error. |
static int |
ERR_SYMBOL_NOT_DEFINED
Error code for a
SQLProcessor error. |
static int |
ERR_UNABLE_TO_OPEN_FILE
Error code for a
SQLProcessor error. |
static int |
ERR_UNKNOWN
Error code for a
SQLProcessor error. |
| Constructor and Description |
|---|
SQLProcessorException(int errorCode)
Creates a SQLProcessorException with a built-in message.
|
SQLProcessorException(int errorCode,
Object msg)
Creates a SQLProcessorException with a built-in message that
supports a custom sub-message (such as a specific filename).
|
SQLProcessorException(SQLException sqle)
Creates a SQLProcessorException from an underlying SQLException.
|
SQLProcessorException(SQLException sqle,
Object msg)
Creates a SQLProcessorException from an underlying SQLException;
the error will include a custom sub-message (such as the
statement that caused the SQLException).
|
SQLProcessorException(String errorMsg)
Creates a SQLProcessorException with a custom message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns the error code of the underlying SQLException.
|
void |
writeError(Log out)
Writes the current time and the error message to a Log.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int ERR_UNKNOWN
SQLProcessor error.public static final int ERR_INVALID_SYMBOL
SQLProcessor error.public static final int ERR_SYMBOL_NOT_DEFINED
SQLProcessor error.public static final int ERR_UNABLE_TO_OPEN_FILE
SQLProcessor error.public static final int ERR_PREPROC_CMD_SYNTAX
SQLProcessor error.public static final int ERR_ENDIF_MISSING
SQLProcessor error.public static final int ERR_DEFINE_STMT_SYNTAX
SQLProcessor error.public static final int ERR_CONNECT_STMT_SYNTAX
SQLProcessor error.public static final int ERR_ELSE_NOT_IN_IF
SQLProcessor error.public static final int ERR_ENDIF_NOT_IN_IF
SQLProcessor error.public static final int ERR_INVALID_ERROR_NUM
SQLProcessor error.public static final int ERR_SQL_EXCEPTION
SQLProcessor error.public static final int ERR_SQL_EXCEPTION_STMT
SQLProcessor error.public SQLProcessorException(String errorMsg)
errorMsg - the error message to use.public SQLProcessorException(int errorCode)
errorCode - the error code to use.public SQLProcessorException(int errorCode,
Object msg)
Note: the custom sub-message Object must have a toString method.
errorCode - the error code to use.msg - the custom sub-message Object to use.public SQLProcessorException(SQLException sqle)
sqle - the SQLException that occurred.public SQLProcessorException(SQLException sqle, Object msg)
sqle - the SQLException that occurred.msg - the custom sub-message Object.public int getErrorCode()
public void writeError(Log out)
out - the Log to write the message to.Copyright © 2025. All rights reserved.