public class PostgresSqlQueryExceptionHandler extends QueryExceptionHandler
QueryExceptionHandler for PostgreSQL engine.| Constructor and Description |
|---|
PostgresSqlQueryExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetryableException(java.sql.SQLException exception)
Checks if an Exception occurred due to serialization failures in concurrent transactions and may be retried on
the client-side.
|
boolean |
isTimeoutException(java.sql.SQLException exception)
Indicates if a given exception is a timeout.
|
handleExceptionpublic boolean isTimeoutException(java.sql.SQLException exception)
QueryExceptionHandlerisTimeoutException in class QueryExceptionHandlerexception - The exception to check.true if the exception is a timeout, false otherwise.public boolean isRetryableException(java.sql.SQLException exception)
QueryExceptionHandlerisRetryableException in class QueryExceptionHandlerexception - The exception to check.true if the exception is retryable, false otherwise.Copyright © 2020 Feedzai. All Rights Reserved.