Class WebClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.core.NestedRuntimeException
-
- org.springframework.web.server.ResponseStatusException
-
- org.bremersee.web.reactive.function.client.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 Summary
Constructors Constructor Description WebClientException(org.springframework.http.HttpStatus status, Map<String,? extends Collection<String>> headers, org.bremersee.exception.model.RestApiException restApiException)
Instantiates a new web client exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
Map<String,? extends Collection<String>>
getMultiValueHeaders()
org.springframework.http.HttpHeaders
getResponseHeaders()
-
Methods inherited from class org.springframework.web.server.ResponseStatusException
getHeaders, getMessage, getRawStatusCode, getReason, getStatus
-
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 statusheaders
- the headersrestApiException
- the rest api exception
-
-
Method Detail
-
getResponseHeaders
@NonNull public org.springframework.http.HttpHeaders getResponseHeaders()
- Overrides:
getResponseHeaders
in classorg.springframework.web.server.ResponseStatusException
-
getMultiValueHeaders
public Map<String,? extends Collection<String>> getMultiValueHeaders()
- Specified by:
getMultiValueHeaders
in interfaceorg.bremersee.exception.HttpResponseHeadersAware
-
getErrorCode
public String getErrorCode()
- Specified by:
getErrorCode
in interfaceorg.bremersee.exception.ErrorCodeAware
-
-