public final class ExceptionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static ExceptionFactory |
INSTANCE |
Constructor and Description |
---|
ExceptionFactory(long threadId,
Options options,
MariaDbConnection connection,
Statement statement) |
Modifier and Type | Method and Description |
---|---|
SQLException |
create(SQLException cause) |
SQLException |
create(String message) |
SQLException |
create(String message,
Exception cause) |
SQLException |
create(String message,
String sqlState) |
SQLException |
create(String message,
String sqlState,
Exception cause) |
SQLException |
create(String message,
String sqlState,
int errorCode) |
SQLException |
create(String message,
String sqlState,
int errorCode,
Exception cause) |
Options |
getOptions() |
long |
getThreadId() |
SQLException |
notSupported(String message) |
static ExceptionFactory |
of(long threadId,
Options options) |
ExceptionFactory |
raiseStatementError(MariaDbConnection connection,
Statement stmt) |
String |
toString() |
public static final ExceptionFactory INSTANCE
public ExceptionFactory(long threadId, Options options, MariaDbConnection connection, Statement statement)
public static ExceptionFactory of(long threadId, Options options)
public ExceptionFactory raiseStatementError(MariaDbConnection connection, Statement stmt)
public SQLException create(SQLException cause)
public SQLException notSupported(String message)
public SQLException create(String message)
public SQLException create(String message, Exception cause)
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 SQLException create(String message, String sqlState, int errorCode, Exception cause)
public long getThreadId()
public Options getOptions()
Copyright © 2020 mariadb.com. All rights reserved.