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
,ErrorCodeAware
,HttpResponseHeadersAware
,RestApiExceptionAware
public class WebClientException extends org.springframework.web.server.ResponseStatusException implements RestApiExceptionAware, ErrorCodeAware, HttpResponseHeadersAware
The web client exception.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.bremersee.exception.ErrorCodeAware
NO_ERROR_CODE_VALUE
-
-
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()
Gets the error code.Map<String,? extends Collection<String>>
getMultiValueHeaders()
Gets the response headers as multi value map.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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bremersee.exception.RestApiExceptionAware
getRestApiException
-
-
-
-
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()
Description copied from interface:HttpResponseHeadersAware
Gets the response headers as multi value map.- Specified by:
getMultiValueHeaders
in interfaceHttpResponseHeadersAware
- Returns:
- the response headers
-
getErrorCode
public String getErrorCode()
Description copied from interface:ErrorCodeAware
Gets the error code.- Specified by:
getErrorCode
in interfaceErrorCodeAware
- Returns:
- the error code
-
-