public class ResponseStatusExceptionHandler extends ObjectSE implements WebExceptionHandler
ResponseStatusException を処理します。 デフォルトでは、正常に解決された例外の例外スタックトレースは表示されません。setWarnLogCategory(String) を使用して、スタックトレースによるロギングを有効にします。
| コンストラクターと説明 |
|---|
ResponseStatusExceptionHandler() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected int | determineRawStatusCode(ThrowableSE ex) 指定された例外の生のステータスコードを決定します。 |
protected HttpStatus | determineStatus(ThrowableSE ex) 使用すべきではありません。 5.3 現在、 determineRawStatusCode(Throwable) を推奨 |
reactor.core.publisher.Mono<VoidSE> | handle(ServerWebExchange exchange, ThrowableSE ex) 指定された例外を処理します。 |
void | setWarnLogCategory(StringSE loggerName) 警告ログのログカテゴリを設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setWarnLogCategory(StringSE loggerName)
デフォルトでは、警告ロギングはありません。この設定を指定して、特定のカテゴリへの警告ロギングをアクティブ化します。
LogFactory.getLog(String), Logger.getLogger(String)SEpublic reactor.core.publisher.Mono<VoidSE> handle(ServerWebExchange exchange, ThrowableSE ex)
WebExceptionHandlerWebExceptionHandler の handle exchange - 現在の交換 ex - 処理する例外 Mono<Void> @Nullable @DeprecatedSE protected HttpStatus determineStatus(ThrowableSE ex)
determineRawStatusCode(Throwable) に切り替え。5.3 以降、このメソッドは常に null を返します。この場合、代わりに determineRawStatusCode(Throwable) が使用されます。
ex - チェックする例外 protected int determineRawStatusCode(ThrowableSE ex)
ex - チェックする例外