public class FeignException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
FeignException.BadGateway |
static class |
FeignException.BadRequest |
static class |
FeignException.Conflict |
static class |
FeignException.FeignClientException |
static class |
FeignException.FeignServerException |
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 |
Modifier | Constructor and Description |
---|---|
protected |
FeignException(int status,
String message) |
protected |
FeignException(int status,
String message,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders) |
protected |
FeignException(int status,
String message,
Request request) |
protected |
FeignException(int status,
String message,
Request request,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders) |
protected |
FeignException(int status,
String message,
Request request,
Throwable cause) |
protected |
FeignException(int status,
String message,
Request request,
Throwable cause,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders) |
protected |
FeignException(int status,
String message,
Throwable cause) |
protected |
FeignException(int status,
String message,
Throwable cause,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders) |
Modifier and Type | Method and Description |
---|---|
byte[] |
content()
Deprecated.
use
responseBody() instead. |
String |
contentUTF8() |
static FeignException |
errorStatus(String methodKey,
Response response) |
static FeignException |
errorStatus(String methodKey,
Response response,
Integer maxBodyBytesLength,
Integer maxBodyCharsLength) |
boolean |
hasRequest() |
Request |
request() |
Optional<ByteBuffer> |
responseBody()
The Response body.
|
Map<String,Collection<String>> |
responseHeaders() |
int |
status() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected FeignException(int status, String message, Throwable cause, byte[] responseBody, Map<String,Collection<String>> responseHeaders)
protected FeignException(int status, String message)
protected FeignException(int status, String message, byte[] responseBody, Map<String,Collection<String>> responseHeaders)
protected FeignException(int status, String message, Request request, Throwable cause)
protected FeignException(int status, String message, Request request, Throwable cause, byte[] responseBody, Map<String,Collection<String>> responseHeaders)
public int status()
@Deprecated public byte[] content()
responseBody()
instead.public Optional<ByteBuffer> responseBody()
public Map<String,Collection<String>> responseHeaders()
public Request request()
public boolean hasRequest()
public String contentUTF8()
public static FeignException errorStatus(String methodKey, Response response)
public static FeignException errorStatus(String methodKey, Response response, Integer maxBodyBytesLength, Integer maxBodyCharsLength)
Copyright © 2012–2023 OpenFeign. All rights reserved.