public class SpannerExceptionUtil extends Object
| Constructor and Description |
|---|
SpannerExceptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static io.r2dbc.spi.R2dbcException |
createR2dbcException(int errorCode,
String message)
Manually creates an
R2dbcException from a provided error code and message. |
static io.r2dbc.spi.R2dbcException |
createR2dbcException(Throwable baseException)
Extracts metadata of a thrown exception and creates a
R2dbcException from it. |
public static io.r2dbc.spi.R2dbcException createR2dbcException(int errorCode,
String message)
R2dbcException from a provided error code and message.errorCode - the Spanner error code of the error.message - the error message.R2dbcException that is propagated to the user.public static io.r2dbc.spi.R2dbcException createR2dbcException(Throwable baseException)
R2dbcException from it.baseException - the base exception that is thrownR2dbcException that is propagated to the user.Copyright © 2021 Google LLC. All rights reserved.