Class FeignClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
feign.FeignException
org.bremersee.exception.feign.FeignClientException
All Implemented Interfaces:
Serializable, org.bremersee.exception.HttpStatusAware, org.bremersee.exception.RestApiExceptionAware

public class FeignClientException extends feign.FeignException implements org.bremersee.exception.HttpStatusAware, org.bremersee.exception.RestApiExceptionAware
Feign exception that stores the error payload as a RestApiException. If the error payload cannot be parsed as RestApiException, the whole body of the error payload will be stored in the message field of the RestApiException.
Author:
Christian Bremer
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class feign.FeignException

    feign.FeignException.BadGateway, feign.FeignException.BadRequest, feign.FeignException.Conflict, feign.FeignException.FeignClientException, feign.FeignException.FeignServerException, feign.FeignException.Forbidden, feign.FeignException.GatewayTimeout, feign.FeignException.Gone, feign.FeignException.InternalServerError, feign.FeignException.MethodNotAllowed, feign.FeignException.NotAcceptable, feign.FeignException.NotFound, feign.FeignException.NotImplemented, feign.FeignException.ServiceUnavailable, feign.FeignException.TooManyRequests, feign.FeignException.Unauthorized, feign.FeignException.UnprocessableEntity, feign.FeignException.UnsupportedMediaType
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeignClientException(int status, String message, feign.Request request, Map<String,Collection<String>> responseHeaders, byte[] responseBody, org.bremersee.exception.model.RestApiException restApiException)
    Instantiates a new feign client exception.
  • Method Summary

    Methods inherited from class feign.FeignException

    content, contentUTF8, errorStatus, errorStatus, hasRequest, request, responseBody, responseHeaders, status

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bremersee.exception.HttpStatusAware

    status

    Methods inherited from interface org.bremersee.exception.RestApiExceptionAware

    getRestApiException
  • Constructor Details

    • FeignClientException

      public FeignClientException(int status, String message, feign.Request request, Map<String,Collection<String>> responseHeaders, byte[] responseBody, org.bremersee.exception.model.RestApiException restApiException)
      Instantiates a new feign client exception.
      Parameters:
      status - the response status code
      message - the message of this FeignException.FeignClientException
      request - the original request
      responseHeaders - the response headers
      responseBody - the response body
      restApiException - the rest api exception