Class CustomErrorDecoder
- java.lang.Object
-
- ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoder
-
- All Implemented Interfaces:
feign.codec.ErrorDecoder,org.springframework.beans.factory.InitializingBean
public class CustomErrorDecoder extends java.lang.Object implements feign.codec.ErrorDecoder, org.springframework.beans.factory.InitializingBeanCustom error decoder for feign client- Since:
- 1/22/2021
- Author:
- Ali Alimohammadi
-
-
Constructor Summary
Constructors Constructor Description CustomErrorDecoder(CustomErrorDecoderConfig customErrorDecoderConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.lang.Exceptiondecode(java.lang.String methodKey, feign.Response response)
-
-
-
Constructor Detail
-
CustomErrorDecoder
public CustomErrorDecoder(CustomErrorDecoderConfig customErrorDecoderConfig)
-
-
Method Detail
-
decode
public java.lang.Exception decode(java.lang.String methodKey, feign.Response response)- Specified by:
decodein interfacefeign.codec.ErrorDecoder
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
-