Class WebClientException

  • All Implemented Interfaces:
    Serializable, org.bremersee.exception.ErrorCodeAware, org.bremersee.exception.HttpResponseHeadersAware, org.bremersee.exception.RestApiExceptionAware

    public class WebClientException
    extends org.springframework.web.server.ResponseStatusException
    implements org.bremersee.exception.RestApiExceptionAware, org.bremersee.exception.ErrorCodeAware, org.bremersee.exception.HttpResponseHeadersAware
    The web client exception.
    Author:
    Christian Bremer
    See Also:
    Serialized Form
    • Constructor Detail

      • WebClientException

        public WebClientException​(org.springframework.http.HttpStatus status,
                                  Map<String,​? extends Collection<String>> headers,
                                  org.bremersee.exception.model.RestApiException restApiException)
        Instantiates a new web client exception.
        Parameters:
        status - the status
        headers - the headers
        restApiException - the rest api exception
    • Method Detail

      • getResponseHeaders

        @NonNull
        public org.springframework.http.HttpHeaders getResponseHeaders()
        Overrides:
        getResponseHeaders in class org.springframework.web.server.ResponseStatusException
      • getMultiValueHeaders

        public Map<String,​? extends Collection<String>> getMultiValueHeaders()
        Specified by:
        getMultiValueHeaders in interface org.bremersee.exception.HttpResponseHeadersAware
      • getErrorCode

        public String getErrorCode()
        Specified by:
        getErrorCode in interface org.bremersee.exception.ErrorCodeAware