Package feign
Class FeignException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- feign.FeignException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DecodeException,EncodeException,RetryableException
public class FeignException extends java.lang.RuntimeExceptionOrigin exception type for all Http Apis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFeignException(int status, java.lang.String message, byte[] content)protectedFeignException(java.lang.String message)protectedFeignException(java.lang.String message, java.lang.Throwable cause)protectedFeignException(java.lang.String message, java.lang.Throwable cause, byte[] content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]content()java.lang.StringcontentUTF8()static FeignExceptionerrorStatus(java.lang.String methodKey, Response response)intstatus()
-
-
-
Constructor Detail
-
FeignException
protected FeignException(java.lang.String message, java.lang.Throwable cause)
-
FeignException
protected FeignException(java.lang.String message, java.lang.Throwable cause, byte[] content)
-
FeignException
protected FeignException(java.lang.String message)
-
FeignException
protected FeignException(int status, java.lang.String message, byte[] content)
-
-
Method Detail
-
status
public int status()
-
content
public byte[] content()
-
contentUTF8
public java.lang.String contentUTF8()
-
errorStatus
public static FeignException errorStatus(java.lang.String methodKey, Response response)
-
-