Package org.mariadb.jdbc.util.exceptions
Class ExceptionFactory
- java.lang.Object
-
- org.mariadb.jdbc.util.exceptions.ExceptionFactory
-
- Direct Known Subclasses:
ExceptionFactory.SqlExceptionFactory
public class ExceptionFactory extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classExceptionFactory.SqlExceptionFactory
-
Constructor Summary
Constructors Constructor Description ExceptionFactory(Configuration conf, HostAddress hostAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptioncreate(String message)SQLExceptioncreate(String message, String sqlState)SQLExceptioncreate(String message, String sqlState, int errorCode)SQLExceptioncreate(String message, String sqlState, Exception cause)BatchUpdateExceptioncreateBatchUpdate(List<Completion> res, int length, int[] responseMsg, SQLException sqle)BatchUpdateExceptioncreateBatchUpdate(List<Completion> res, int length, SQLException sqle)StringgetSql()SQLExceptionnotSupported(String message)ExceptionFactoryof(Statement statement)ExceptionFactorysetConnection(Connection connection)voidsetConnection(ExceptionFactory oldExceptionFactory)ExceptionFactorysetPoolConnection(MariaDbPoolConnection internalPoolConnection)voidsetThreadId(long threadId)ExceptionFactorywithSql(String sql)
-
-
-
Constructor Detail
-
ExceptionFactory
public ExceptionFactory(Configuration conf, HostAddress hostAddress)
-
-
Method Detail
-
setConnection
public void setConnection(ExceptionFactory oldExceptionFactory)
-
setConnection
public ExceptionFactory setConnection(Connection connection)
-
setPoolConnection
public ExceptionFactory setPoolConnection(MariaDbPoolConnection internalPoolConnection)
-
setThreadId
public void setThreadId(long threadId)
-
createBatchUpdate
public BatchUpdateException createBatchUpdate(List<Completion> res, int length, SQLException sqle)
-
createBatchUpdate
public BatchUpdateException createBatchUpdate(List<Completion> res, int length, int[] responseMsg, SQLException sqle)
-
of
public ExceptionFactory of(Statement statement)
-
withSql
public ExceptionFactory withSql(String sql)
-
notSupported
public SQLException notSupported(String message)
-
create
public SQLException create(String message)
-
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)
-
getSql
public String getSql()
-
-