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,FeignException.BadGateway,FeignException.BadRequest,FeignException.Conflict,FeignException.Forbidden,FeignException.GatewayTimeout,FeignException.Gone,FeignException.InternalServerError,FeignException.MethodNotAllowed,FeignException.NotAcceptable,FeignException.NotFound,FeignException.NotImplemented,FeignException.ServiceUnavailable,FeignException.TooManyRequests,FeignException.Unauthorized,FeignException.UnprocessableEntity,FeignException.UnsupportedMediaType,RetryableException
public class FeignException extends java.lang.RuntimeExceptionOrigin exception type for all Http Apis.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeignException.BadGatewaystatic classFeignException.BadRequeststatic classFeignException.Conflictstatic classFeignException.Forbiddenstatic classFeignException.GatewayTimeoutstatic classFeignException.Gonestatic classFeignException.InternalServerErrorstatic classFeignException.MethodNotAllowedstatic classFeignException.NotAcceptablestatic classFeignException.NotFoundstatic classFeignException.NotImplementedstatic classFeignException.ServiceUnavailablestatic classFeignException.TooManyRequestsstatic classFeignException.Unauthorizedstatic classFeignException.UnprocessableEntitystatic classFeignException.UnsupportedMediaType
-
Constructor Summary
Constructors Modifier Constructor Description protectedFeignException(int status, java.lang.String message)protectedFeignException(int status, java.lang.String message, byte[] content)protectedFeignException(int status, java.lang.String message, java.lang.Throwable cause)protectedFeignException(int status, 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(int status, java.lang.String message, java.lang.Throwable cause)
-
FeignException
protected FeignException(int status, java.lang.String message, java.lang.Throwable cause, byte[] content)
-
FeignException
protected FeignException(int status, 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)
-
-