public class ExceptionUtils extends Object
| Constructor and Description |
|---|
ExceptionUtils() |
| 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 RestTemplatepublic static reactor.core.publisher.Mono<Throwable> buildError(ClientResponse response)
response - a ClientResponse returned from WebClient