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.RuntimeException
Origin exception type for all Http Apis.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeignException.BadGateway
static class
FeignException.BadRequest
static class
FeignException.Conflict
static class
FeignException.Forbidden
static class
FeignException.GatewayTimeout
static class
FeignException.Gone
static class
FeignException.InternalServerError
static class
FeignException.MethodNotAllowed
static class
FeignException.NotAcceptable
static class
FeignException.NotFound
static class
FeignException.NotImplemented
static class
FeignException.ServiceUnavailable
static class
FeignException.TooManyRequests
static class
FeignException.Unauthorized
static class
FeignException.UnprocessableEntity
static class
FeignException.UnsupportedMediaType
-
Constructor Summary
Constructors Modifier Constructor Description protected
FeignException(int status, java.lang.String message)
protected
FeignException(int status, java.lang.String message, byte[] content)
protected
FeignException(int status, java.lang.String message, java.lang.Throwable cause)
protected
FeignException(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.String
contentUTF8()
static FeignException
errorStatus(java.lang.String methodKey, Response response)
int
status()
-
-
-
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)
-
-