public class R2dbcExceptionSubclassTranslator extends AbstractFallbackR2dbcExceptionTranslator
R2dbcExceptionTranslator implementation which analyzes the specific R2dbcException subclass thrown by
the R2DBC driver.
Falls back to a standard SqlStateR2dbcExceptionTranslator.
logger| Constructor and Description |
|---|
R2dbcExceptionSubclassTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected DataAccessException |
doTranslate(String task,
String sql,
R2dbcException ex)
Template method for actually translating the given exception.
|
buildMessage, getFallbackTranslator, setFallbackTranslator, translate@Nullable protected DataAccessException doTranslate(String task, @Nullable String sql, R2dbcException ex)
AbstractFallbackR2dbcExceptionTranslatorThe passed-in arguments will have been pre-checked. Furthermore, this method is allowed to return null to indicate that no exception match has been found and that fallback translation should kick in.
doTranslate in class AbstractFallbackR2dbcExceptionTranslatortask - readable text describing the task being attempted.sql - SQL query or update that caused the problem (if known).ex - the offending R2dbcException.R2dbcException; or null if no exception match
found.Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.