クラス HttpServerErrorException
- 実装されているすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
HttpServerErrorException.BadGateway、HttpServerErrorException.GatewayTimeout、HttpServerErrorException.InternalServerError、HttpServerErrorException.NotImplemented、HttpServerErrorException.ServiceUnavailable
HTTP 5xx を受信したときにスローされる例外。
- 導入:
- 3.0
- 作成者:
- Arjen Poutsma
- 関連事項:
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final classHTTP ステータス 502BadGateway のHttpServerErrorException。static final classHttpServerErrorExceptionステータス HTTP 504 Gateway Timeoutstatic final classHttpServerErrorExceptionステータス HTTP 500 Internal Server Errorstatic final classHttpServerErrorExceptionステータス HTTP 501 Not Implementedstatic final classHttpServerErrorExceptionステータス 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 HttpServerErrorExceptioncreate(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むcreate(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpServerErrorExceptioncreate(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.