类 HttpServerErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.client.RestClientException
cn.taketoday.web.client.RestClientResponseException
cn.taketoday.web.client.HttpStatusCodeException
cn.taketoday.web.client.HttpServerErrorException
- 所有已实现的接口:
Serializable
- 直接已知子类:
HttpServerErrorException.BadGateway,HttpServerErrorException.GatewayTimeout,HttpServerErrorException.InternalServerError,HttpServerErrorException.NotImplemented,HttpServerErrorException.ServiceUnavailable
Exception thrown when an HTTP 5xx is received.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static final classHttpServerErrorExceptionfor status HTTP HTTP 502 Bad Gateway.static final classHttpServerErrorExceptionfor status HTTP 504 Gateway Timeout.static final classHttpServerErrorExceptionfor status HTTP 500 Internal Server Error.static final classHttpServerErrorExceptionfor status HTTP 501 Not Implemented.static final classHttpServerErrorExceptionfor status HTTP 503 Service Unavailable. -
字段概要
字段 -
构造器概要
构造器构造器说明HttpServerErrorException(HttpStatusCode statusCode) Constructor with a status code only.HttpServerErrorException(HttpStatusCode statusCode, String statusText) Constructor with a status code and status text.HttpServerErrorException(HttpStatusCode statusCode, String statusText, byte[] body, Charset charset) Constructor with a status code and status text, and content.HttpServerErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, and content.HttpServerErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, content, and an prepared message. -
方法概要
修饰符和类型方法说明static HttpServerErrorExceptioncreate(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Create anHttpServerErrorExceptionor an HTTP status specific sub-class.static HttpServerErrorExceptioncreate(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofcreate(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.从类继承的方法 cn.taketoday.web.client.RestClientResponseException
getRawStatusCode, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunction从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
-
构造器详细资料
-
HttpServerErrorException
Constructor with a status code only. -
HttpServerErrorException
Constructor with a status code and status text. -
HttpServerErrorException
public HttpServerErrorException(HttpStatusCode statusCode, String statusText, @Nullable byte[] body, @Nullable Charset charset) Constructor with a status code and status text, and content. -
HttpServerErrorException
public HttpServerErrorException(HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset charset) Constructor with a status code and status text, headers, and content. -
HttpServerErrorException
public HttpServerErrorException(String message, HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset charset) Constructor with a status code and status text, headers, content, and an prepared message.
-
-
方法详细资料
-
create
public static HttpServerErrorException create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset) Create anHttpServerErrorExceptionor an HTTP status specific sub-class. -
create
public static HttpServerErrorException create(@Nullable String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset) Variant ofcreate(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.
-