public class MySQLException extends RuntimeException
MySQLException is the class representing that a MySQL error packet is received from the server,
This usually signals that an error occurred during a connection establishment or command executions.| Constructor and Description |
|---|
MySQLException(String message,
int errorCode,
String sqlState) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Get the error code in the error message sent from MySQL server.
|
String |
getMessage()
Get the error message in the error message sent from MySQL server.
|
String |
getSqlState()
Get the SQL state in the error message sent from MySQL server.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int getErrorCode()
public String getSqlState()
public String getMessage()
getMessage in class ThrowableCopyright © 2023 Eclipse. All rights reserved.