Class MySqlQueryExceptionHandler
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.engine.handler.QueryExceptionHandler
-
- com.feedzai.commons.sql.abstraction.engine.impl.mysql.MySqlQueryExceptionHandler
-
public class MySqlQueryExceptionHandler extends QueryExceptionHandler
A specific implementation ofQueryExceptionHandlerfor MySQL engine.- Since:
- 2.5.1
- Author:
- José Fidalgo (jose.fidalgo@feedzai.com)
-
-
Constructor Summary
Constructors Constructor Description MySqlQueryExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTimeoutException(SQLException exception)Indicates if a given exception is a timeout.-
Methods inherited from class com.feedzai.commons.sql.abstraction.engine.handler.QueryExceptionHandler
handleException, isRetryableException
-
-
-
-
Method Detail
-
isTimeoutException
public boolean isTimeoutException(SQLException exception)
Description copied from class:QueryExceptionHandlerIndicates if a given exception is a timeout. Logic for this may be driver-specific, so drivers that support query timeouts may have to override this method. A timeout exception can also be considered retryable.- Overrides:
isTimeoutExceptionin classQueryExceptionHandler- Parameters:
exception- The exception to check.- Returns:
trueif the exception is a timeout,falseotherwise.
-
-