クラス HttpClientErrorException
- 実装されているすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
HttpClientErrorException.BadRequest、HttpClientErrorException.Conflict、HttpClientErrorException.Forbidden、HttpClientErrorException.Gone、HttpClientErrorException.MethodNotAllowed、HttpClientErrorException.NotAcceptable、HttpClientErrorException.NotFound、HttpClientErrorException.TooManyRequests、HttpClientErrorException.Unauthorized、HttpClientErrorException.UnprocessableEntity、HttpClientErrorException.UnsupportedMediaType
HTTP 4xx を受信したときにスローされる例外。
- 導入:
- 3.0
- 作成者:
- Arjen Poutsma
- 関連事項:
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final classHttpClientErrorExceptionステータス HTTP 400 Bad Requeststatic final classHttpClientErrorExceptionステータス HTTP 409 Conflictstatic final classHttpClientErrorExceptionステータス HTTP 403 Forbiddenstatic final classHttpClientErrorExceptionステータス HTTP 410 Gonestatic final classHttpClientErrorExceptionステータス HTTP 405 Method Not Allowedstatic final classHttpClientErrorExceptionステータス HTTP 406 Not Acceptablestatic final classHttpClientErrorExceptionステータス HTTP 404 Not Foundstatic final classHttpClientErrorExceptionステータス HTTP 429 Too Many Requestsstatic final classHttpClientErrorExceptionステータス HTTP 401 Unauthorizedstatic final classHttpClientErrorExceptionステータス HTTP 422 Unprocessable Entitystatic final classHttpClientErrorExceptionステータス HTTP 415 Unsupported Media Typeコンストラクターの概要
コンストラクターコンストラクター説明HttpClientErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpClientErrorException(HttpStatusCode statusCode) ステータスコードのみのコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText) ステータスコードとステータステキストを持つコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。メソッドのサマリー
修飾子と型メソッド説明static HttpClientErrorExceptioncreate(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むcreate(HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpClientErrorExceptioncreate(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpClientErrorExceptionまたは 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
コンストラクターの詳細
HttpClientErrorException
ステータスコードのみのコンストラクター。HttpClientErrorException
ステータスコードとステータステキストを持つコンストラクター。HttpClientErrorException
public HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable byte[] body, @Nullable CharsetSE responseCharset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpClientErrorException
public HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。HttpClientErrorException
public HttpClientErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。- 導入:
- 5.2.2
メソッドの詳細
create
public static HttpClientErrorException create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) HttpClientErrorExceptionまたは HTTP ステータス固有のサブクラスを作成します。- 導入:
- 5.1
create
public static HttpClientErrorException create(@Nullable StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) オプションの準備済みメッセージを含むcreate(HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。- 導入:
- 5.2.2