ConnectionFactoryUtils.convertR2dbcException(String, String, R2dbcException)
instead.@Deprecated 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
doTranslate(String task,
String sql,
R2dbcException ex)
Deprecated.
Template method for actually translating the given exception.
|
buildMessage, getFallbackTranslator, setFallbackTranslator, translate
public R2dbcExceptionSubclassTranslator()
@Nullable protected DataAccessException doTranslate(String task, @Nullable String sql, R2dbcException ex)
AbstractFallbackR2dbcExceptionTranslator
The 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 AbstractFallbackR2dbcExceptionTranslator
task
- 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–2022 Pivotal Software, Inc.. All rights reserved.