クラス NotAcceptableStatusException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
org.springframework.web.server.NotAcceptableStatusException
- 実装されているすべてのインターフェース:
SerializableSE, ErrorResponse
レスポンスステータス 406 に適合するエラーの例外(受け入れられません)。
- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
ネストされたクラスの要約
インターフェース ErrorResponse から継承されたネストクラス / インターフェース
ErrorResponse.Builder, ErrorResponse.Interceptorコンストラクターの概要
コンストラクターコンストラクター説明NotAcceptableStatusException(StringSE reason) リクエストされた Content-Type が無効な場合のコンストラクター。NotAcceptableStatusException(ListSE<MediaType> mediaTypes) リクエストされた Content-Type がサポートされていない場合のコンストラクター。方法の概要
修飾子と型メソッド説明利用可能な場合はサポートされているメディア型をドキュメント化する "Accept" ヘッダーを含む HttpHeaders を返し、そうでない場合は空のインスタンスを返します。Accept ヘッダーが解析されているがサポートされていない場合は、サポートされているコンテンツ型のリストを返し、そうでない場合は空のリストを返します。クラス ResponseStatusException から継承されたメソッド
getMessage, getReason, updateAndGetBodyクラス ErrorResponseException から継承されたメソッド
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeクラス NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCauseクラス ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース ErrorResponse から継承されたメソッド
getDetailMessageArguments, getTitleMessageCode, getTypeMessageCode
コンストラクターの詳細
NotAcceptableStatusException
リクエストされた Content-Type が無効な場合のコンストラクター。NotAcceptableStatusException
メソッドの詳細
getHeaders
利用可能な場合はサポートされているメディア型をドキュメント化する "Accept" ヘッダーを含む HttpHeaders を返し、そうでない場合は空のインスタンスを返します。- 次で指定:
- インターフェース
ErrorResponseのgetHeaders - オーバーライド:
- クラス
ResponseStatusExceptionのgetHeaders
getSupportedMediaTypes