public class QueryException extends Exception
| Constructor and Description |
|---|
QueryException(String message)
Creates a default query exception with errorCode -1 and sqlState HY0000.
|
QueryException(String message,
int errorCode,
String sqlState,
Throwable cause)
creates a query exception with a message and a cause.
|
QueryException(String message,
short errorCode,
String sqlState)
Creates a query exception with a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
returns the error code.
|
String |
getSqlState()
gets the sql state.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic QueryException(String message)
message - the message to setpublic QueryException(String message, short errorCode, String sqlState)
message - the messageerrorCode - the error codesqlState - the sqlstatepublic final int getErrorCode()
public final String getSqlState()
Copyright © 2016. All rights reserved.