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.RuntimeException
Origin exception type for all Http Apis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FeignException(int status, java.lang.String message, byte[] content)
protected
FeignException(java.lang.String message)
protected
FeignException(java.lang.String message, java.lang.Throwable cause)
protected
FeignException(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.String
contentUTF8()
static FeignException
errorStatus(java.lang.String methodKey, Response response)
int
status()
-
-
-
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)
-
-