public class CosmosExceptionUtils extends Object
| Constructor and Description |
|---|
CosmosExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Mono<T> |
exceptionHandler(String message,
Throwable throwable)
To throw a CosmosDBAccessException
|
static <T> Mono<T> |
findAPIExceptionHandler(String message,
Throwable throwable)
To find an exceptionHandler for a exception and return empty Mono if the exception status code is not found
|
public static <T> Mono<T> exceptionHandler(String message, Throwable throwable)
T - type class of Monomessage - the detail messagethrowable - exceptionCosmosAccessException - for operations on cosmos dbpublic static <T> Mono<T> findAPIExceptionHandler(String message, Throwable throwable)
T - type class of Monomessage - the detail messagethrowable - exceptionVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.