public final class ExceptionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static reactor.core.publisher.Mono<Throwable> |
buildError(ClientResponse response)
Helper method to return an appropriate error if a request to CredHub returns with
an error code.
|
static void |
throwExceptionOnError(ResponseEntity<?> response)
Helper method to throw an appropriate exception if a request to CredHub returns
with an error code.
|
public static void throwExceptionOnError(ResponseEntity<?> response)
response
- a ResponseEntity
returned from RestTemplate
public static reactor.core.publisher.Mono<Throwable> buildError(ClientResponse response)
response
- a ClientResponse
returned from WebClient