public class MySqlQueryExceptionHandler extends QueryExceptionHandler
QueryExceptionHandler for MySQL engine.| Constructor and Description |
|---|
MySqlQueryExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTimeoutException(SQLException exception)
Indicates if a given exception is a timeout.
|
boolean |
isUniqueConstraintViolationException(SQLException exception)
Checks if an Exception occurred due to a unique constraint violation.
|
handleException, isRetryableExceptionpublic boolean isTimeoutException(SQLException exception)
QueryExceptionHandlerisTimeoutException in class QueryExceptionHandlerexception - The exception to check.true if the exception is a timeout, false otherwise.public boolean isUniqueConstraintViolationException(SQLException exception)
QueryExceptionHandlerisUniqueConstraintViolationException in class QueryExceptionHandlerexception - The exception to check.true if the exception is a unique constraint violation, false otherwise.Copyright © 2023 Feedzai. All rights reserved.