public class SQLExceptionMapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SQLExceptionMapper.SQLStates |
Constructor and Description |
---|
SQLExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
static SQLException |
getFeatureNotSupportedException(String message) |
static SQLException |
getSQLException(String message) |
static SQLException |
getSQLException(String message,
Exception e) |
static SQLException |
getSQLException(String message,
String sqlState,
Exception e) |
static String |
mapMySQLCodeToSQLState(int code) |
static void |
throwException(QueryException e,
MySQLConnection connection,
Statement statement) |
public static void throwException(QueryException e, MySQLConnection connection, Statement statement) throws SQLException
SQLException
public static SQLException getSQLException(String message, Exception e)
public static SQLException getSQLException(String message, String sqlState, Exception e)
public static SQLException getSQLException(String message)
public static SQLException getFeatureNotSupportedException(String message)
public static String mapMySQLCodeToSQLState(int code)
Copyright © 2015. All rights reserved.