Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.VertxException
io.vertx.sqlclient.DatabaseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DB2Exception, MSSQLException, MySQLException, OracleException, PgException
Base class for database failures.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseException(String message, int errorCode, String sqlState) DatabaseException(String message, int errorCode, String sqlState, SQLException cause) -
Method Summary
Modifier and TypeMethodDescriptionintDatabase specific error code.SQL State (XOPEN or SQL:2003 conventions).Methods inherited from class VertxException
noStackTrace, noStackTrace, noStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DatabaseException
-
DatabaseException
-
-
Method Details
-
getErrorCode
public int getErrorCode()Database specific error code.- Returns:
- the error code
-
getSqlState
SQL State (XOPEN or SQL:2003 conventions).- Returns:
- the SQL state if known or
null
-