クラス HttpServerErrorException
- 実装されたすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
HttpServerErrorException.BadGateway
、HttpServerErrorException.GatewayTimeout
、HttpServerErrorException.InternalServerError
、HttpServerErrorException.NotImplemented
、HttpServerErrorException.ServiceUnavailable
HTTP 5xx を受信したときにスローされる例外。
- 導入:
- 3.0
- 作成者:
- Arjen Poutsma
- 関連事項:
ネストされたクラスのサマリー
修飾子と型クラス説明static final class
HTTP ステータス 502BadGateway のHttpServerErrorException
。static final class
HttpServerErrorException
ステータス HTTP 504 Gateway Timeoutstatic final class
HttpServerErrorException
ステータス HTTP 500 Internal Server Errorstatic final class
HttpServerErrorException
ステータス HTTP 501 Not Implementedstatic final class
HttpServerErrorException
ステータス HTTP 503 Service Unavailableコンストラクターのサマリー
コンストラクター説明HttpServerErrorException
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpServerErrorException
(HttpStatusCode statusCode) ステータスコードのみのコンストラクター。HttpServerErrorException
(HttpStatusCode statusCode, StringSE statusText) ステータスコードとステータステキストを持つコンストラクター。HttpServerErrorException
(HttpStatusCode statusCode, StringSE statusText, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpServerErrorException
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。方法の概要
修飾子と型メソッド説明static HttpServerErrorException
create
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むcreate(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)
のバリアント。static HttpServerErrorException
create
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpServerErrorException
または HTTP ステータス固有のサブクラスを作成します。クラス org.springframework.web.client.RestClientResponseException から継承されたメソッド
getRawStatusCode, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunction
クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
HttpServerErrorException
ステータスコードのみのコンストラクター。HttpServerErrorException
ステータスコードとステータステキストを持つコンストラクター。HttpServerErrorException
public HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable byte[] body, @Nullable CharsetSE charset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpServerErrorException
public HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。HttpServerErrorException
public HttpServerErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。- 導入:
- 5.2.2
メソッドの詳細
create
public static HttpServerErrorException create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) HttpServerErrorException
または HTTP ステータス固有のサブクラスを作成します。- 導入:
- 5.1
create
public static HttpServerErrorException create(@Nullable StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) オプションの準備済みメッセージを含むcreate(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)
のバリアント。- 導入:
- 5.2.2.