public class HttpClientErrorException extends HttpStatusCodeException
DefaultResponseErrorHandler
, 直列化された形式 コンストラクターと説明 |
---|
HttpClientErrorException(HttpStatus statusCode) ステータスコードのみのコンストラクター。 |
HttpClientErrorException(HttpStatus statusCode, StringSE statusText) ステータスコードとステータステキストを持つコンストラクター。 |
HttpClientErrorException(HttpStatus statusCode, StringSE statusText, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。 |
HttpClientErrorException(HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。 |
HttpClientErrorException(StringSE message, HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
static HttpClientErrorException | create(HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpClientErrorException または HTTP ステータス固有のサブクラスを作成します。 |
static HttpClientErrorException | create(StringSE message, HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含む create(HttpStatus, String, HttpHeaders, byte[], Charset) のバリアント。 |
getStatusCode
getRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusText
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressedSE, fillInStackTraceSE, getCauseSE, getLocalizedMessageSE, getStackTraceSE, getSuppressedSE, initCauseSE, printStackTraceSE, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public HttpClientErrorException(HttpStatus statusCode)
public HttpClientErrorException(HttpStatus statusCode, StringSE statusText)
public HttpClientErrorException(HttpStatus statusCode, StringSE statusText, @Nullable byte[] body, @Nullable CharsetSE responseCharset)
public HttpClientErrorException(HttpStatus statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE responseCharset)
public HttpClientErrorException(StringSE message, HttpStatus statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable CharsetSE responseCharset)
public static HttpClientErrorException create(HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset)
HttpClientErrorException
または HTTP ステータス固有のサブクラスを作成します。public static HttpClientErrorException create(@Nullable StringSE message, HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset)
create(HttpStatus, String, HttpHeaders, byte[], Charset)
のバリアント。