Class ExceptionFactory
java.lang.Object
org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MariaDbConnection
static final ExceptionFactory
private final Options
private Statement
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExceptionFactory
(long threadId, Options options) ExceptionFactory
(long threadId, Options options, MariaDbConnection connection, Statement statement) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
buildMsgText
(String initialMessage, long threadId, Options options, Exception cause) create
(SQLException cause) private static SQLException
createException
(String initialMessage, String sqlState, int errorCode, long threadId, Options options, MariaDbConnection connection, Statement statement, Exception cause) long
notSupported
(String message) static ExceptionFactory
raiseStatementError
(MariaDbConnection connection, Statement stmt) toString()
-
Field Details
-
INSTANCE
-
threadId
private final long threadId -
options
-
connection
-
statement
-
-
Constructor Details
-
ExceptionFactory
public ExceptionFactory(long threadId, Options options, MariaDbConnection connection, Statement statement) -
ExceptionFactory
-
-
Method Details
-
of
-
createException
private static SQLException createException(String initialMessage, String sqlState, int errorCode, long threadId, Options options, MariaDbConnection connection, Statement statement, Exception cause) -
buildMsgText
-
raiseStatementError
-
create
-
notSupported
-
create
-
create
-
create
-
create
-
create
-
create
-
getThreadId
public long getThreadId() -
getOptions
-
toString
-