クラス HttpMediaTypeNotSupportedException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
jakarta.servlet.ServletException
org.springframework.web.HttpMediaTypeException
org.springframework.web.HttpMediaTypeNotSupportedException
- 実装されているすべてのインターフェース:
SerializableSE, ErrorResponse
クライアントがリクエストハンドラーでサポートされていない型のコンテンツを POST、PUT、PATCH したときにスローされる例外。
- 導入:
- 3.0
- 作成者:
- Arjen Poutsma, Rossen Stoyanchev
- 関連事項:
ネストされたクラスの要約
インターフェース ErrorResponse から継承されたネストクラス / インターフェース
ErrorResponse.Builder, ErrorResponse.Interceptorコンストラクターの概要
コンストラクターコンストラクター説明HttpMediaTypeNotSupportedException(@Nullable StringSE message, ListSE<MediaType> mediaTypes) 解析エラー用に新しい HttpMediaTypeNotSupportedException を作成します。新しい HttpMediaTypeNotSupportedException を作成します。HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, ListSE<MediaType> mediaTypes) 新しい HttpMediaTypeNotSupportedException を作成します。HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, ListSE<MediaType> mediaTypes, @Nullable HttpMethod httpMethod) 新しい HttpMediaTypeNotSupportedException を作成します。HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, ListSE<MediaType> supportedMediaTypes, @Nullable HttpMethod httpMethod, StringSE message) 新しい HttpMediaTypeNotSupportedException を作成します。方法の概要
修飾子と型メソッド説明失敗の原因となった HTTP リクエストコンテンツ型メソッドを返します。レスポンスに使用するヘッダーを返します。レスポンスに使用する HTTP ステータスコードを返します。クラス HttpMediaTypeException から継承されたメソッド
getBody, getDetailMessageArguments, getDetailMessageCode, getSupportedMediaTypesクラス jakarta.servlet.ServletException から継承されたメソッド
getRootCauseクラス ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース ErrorResponse から継承されたメソッド
getDetailMessageArguments, getTitleMessageCode, getTypeMessageCode, updateAndGetBody
コンストラクターの詳細
HttpMediaTypeNotSupportedException
新しい HttpMediaTypeNotSupportedException を作成します。- パラメーター:
message- 例外メッセージ
HttpMediaTypeNotSupportedException
HttpMediaTypeNotSupportedException
HttpMediaTypeNotSupportedException
HttpMediaTypeNotSupportedException
public HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, ListSE<MediaType> supportedMediaTypes, @Nullable HttpMethod httpMethod, StringSE message) 新しい HttpMediaTypeNotSupportedException を作成します。- パラメーター:
contentType- サポートされていないコンテンツ型supportedMediaTypes- サポートされているメディア型のリストhttpMethod- リクエストの HTTP メソッドmessage- 詳細メッセージ- 導入:
- 6.0
メソッドの詳細
getContentType
getStatusCode
インターフェースからコピーされた説明:ErrorResponseレスポンスに使用する HTTP ステータスコードを返します。getHeaders