Serializable
, Iterable<Throwable>
public class AS400JDBCSQLSyntaxErrorException extends SQLSyntaxErrorException
The AS400JDBCSQLSyntaxErrorException class provides additional information about SQL Syntax Errors thrown by the database. In particular, the method getPositionOfSyntaxError returns the position, if available, of where the syntax error occurred in the original SQL statement. The exception also includes the original SQL statement that encountered the error.
Constructor | Description |
---|---|
AS400JDBCSQLSyntaxErrorException(int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object.
|
AS400JDBCSQLSyntaxErrorException(String reason,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason.
|
AS400JDBCSQLSyntaxErrorException(String reason,
String SQLState,
int vendorCode,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason, SQLState and vendorCode.
|
AS400JDBCSQLSyntaxErrorException(String reason,
String SQLState,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason and SQLState.
|
AS400JDBCSQLSyntaxErrorException(String reason,
String sqlState,
int vendorCode,
Throwable cause,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason, SQLState, vendorCode and cause.
|
AS400JDBCSQLSyntaxErrorException(String reason,
String sqlState,
Throwable cause,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason, SQLState and cause.
|
AS400JDBCSQLSyntaxErrorException(String reason,
Throwable cause,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given reason and cause.
|
AS400JDBCSQLSyntaxErrorException(Throwable cause,
int locationOfSyntaxError,
String sqlStatementText) |
Constructs a AS400JDBCSQLSyntaxErrorException object with a given cause.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getLocationOfSyntaxError() |
returns the location of the syntax error, if available.
|
String |
getMessage() |
|
String |
getSqlStatementText() |
returns the sql statement text which encountered the error, if available.
|
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AS400JDBCSQLSyntaxErrorException(int locationOfSyntaxError, String sqlStatementText)
locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, int locationOfSyntaxError, String sqlStatementText)
reason
- locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, String SQLState, int locationOfSyntaxError, String sqlStatementText)
reason
- SQLState
- locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, String SQLState, int vendorCode, int locationOfSyntaxError, String sqlStatementText)
reason
- SQLState
- vendorCode
- locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, String sqlState, int vendorCode, Throwable cause, int locationOfSyntaxError, String sqlStatementText)
reason
- sqlState
- vendorCode
- cause
- locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, String sqlState, Throwable cause, int locationOfSyntaxError, String sqlStatementText)
reason
- sqlState
- cause
- locationOfSyntaxError
- sqlStatementText
- public AS400JDBCSQLSyntaxErrorException(String reason, Throwable cause, int locationOfSyntaxError, String sqlStatementText)
reason
- cause
- locationOfSyntaxError
- sqlStatementText
- public int getLocationOfSyntaxError()
public String getSqlStatementText()
public String getMessage()
getMessage
in class Throwable
Copyright © 2024. All rights reserved.