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) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
static HttpClientErrorException | create(HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpClientErrorException または HTTP ステータス固有のサブクラスを作成します。 |
getStatusCode
getRawStatusCode, getResponseBodyAsByteArray, 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 static HttpClientErrorException create(HttpStatus statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset)
HttpClientErrorException
または HTTP ステータス固有のサブクラスを作成します。