public class ExceptionUtils
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static reactor.core.publisher.Mono<java.lang.Throwable> |
buildError(org.springframework.web.reactive.function.client.ClientResponse response)
Helper method to return an appropriate error if a request to CredHub
returns with an error code.
|
static void |
throwExceptionOnError(org.springframework.http.ResponseEntity<?> response)
Helper method to throw an appropriate exception if a request to CredHub
returns with an error code.
|
public static void throwExceptionOnError(org.springframework.http.ResponseEntity<?> response)
response - a ResponseEntity returned from RestTemplatepublic static reactor.core.publisher.Mono<java.lang.Throwable> buildError(org.springframework.web.reactive.function.client.ClientResponse response)
response - a ClientResponse returned from WebClient