public class ExceptionFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ExceptionFactory.SqlExceptionFactory |
| Constructor and Description |
|---|
ExceptionFactory(Configuration conf,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
SQLException |
create(String message) |
SQLException |
create(String message,
String sqlState) |
SQLException |
create(String message,
String sqlState,
Exception cause) |
SQLException |
create(String message,
String sqlState,
int errorCode) |
BatchUpdateException |
createBatchUpdate(List<Completion> res,
int length,
int[] responseMsg,
SQLException sqle) |
BatchUpdateException |
createBatchUpdate(List<Completion> res,
int length,
SQLException sqle) |
String |
getSql() |
SQLException |
notSupported(String message) |
ExceptionFactory |
of(Statement statement) |
ExceptionFactory |
setConnection(Connection connection) |
void |
setConnection(ExceptionFactory oldExceptionFactory) |
ExceptionFactory |
setPoolConnection(SingleStorePoolConnection internalPoolConnection) |
void |
setThreadId(long threadId) |
ExceptionFactory |
withSql(String sql) |
public ExceptionFactory(Configuration conf, HostAddress hostAddress)
public void setConnection(ExceptionFactory oldExceptionFactory)
public ExceptionFactory setConnection(Connection connection)
public ExceptionFactory setPoolConnection(SingleStorePoolConnection internalPoolConnection)
public void setThreadId(long threadId)
public BatchUpdateException createBatchUpdate(List<Completion> res, int length, SQLException sqle)
public BatchUpdateException createBatchUpdate(List<Completion> res, int length, int[] responseMsg, SQLException sqle)
public ExceptionFactory of(Statement statement)
public ExceptionFactory withSql(String sql)
public SQLException notSupported(String message)
public SQLException create(String message)
public SQLException create(String message, String sqlState)
public SQLException create(String message, String sqlState, Exception cause)
public SQLException create(String message, String sqlState, int errorCode)
public String getSql()
Copyright © 2023 SingleStore. All rights reserved.