Class ExceptionFactory
- java.lang.Object
-
- org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory
-
public final class ExceptionFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ExceptionFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description ExceptionFactory(long threadId, Options options, MariaDbConnection connection, Statement statement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptioncreate(String message)SQLExceptioncreate(String message, Exception cause)SQLExceptioncreate(String message, String sqlState)SQLExceptioncreate(String message, String sqlState, int errorCode)SQLExceptioncreate(String message, String sqlState, int errorCode, Exception cause)SQLExceptioncreate(String message, String sqlState, Exception cause)SQLExceptioncreate(SQLException cause)OptionsgetOptions()longgetThreadId()SQLExceptionnotSupported(String message)static ExceptionFactoryof(long threadId, Options options)ExceptionFactoryraiseStatementError(MariaDbConnection connection, Statement stmt)StringtoString()
-
-
-
Field Detail
-
INSTANCE
public static final ExceptionFactory INSTANCE
-
-
Constructor Detail
-
ExceptionFactory
public ExceptionFactory(long threadId, Options options, MariaDbConnection connection, Statement statement)
-
-
Method Detail
-
of
public static ExceptionFactory of(long threadId, Options options)
-
raiseStatementError
public ExceptionFactory raiseStatementError(MariaDbConnection connection, Statement stmt)
-
create
public SQLException create(SQLException cause)
-
notSupported
public SQLException notSupported(String message)
-
create
public SQLException create(String message)
-
create
public SQLException create(String message, Exception cause)
-
create
public SQLException create(String message, String sqlState)
-
create
public SQLException create(String message, String sqlState, Exception cause)
-
create
public SQLException create(String message, String sqlState, int errorCode)
-
create
public SQLException create(String message, String sqlState, int errorCode, Exception cause)
-
getThreadId
public long getThreadId()
-
getOptions
public Options getOptions()
-
-