public class GlobalErrorHandler extends java.lang.Object implements Handler<Request<?>,java.lang.Object>, ExceptionHandler
| コンストラクタと説明 |
|---|
GlobalErrorHandler() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
handle(Request<?> req,
ExecutionContext context)
入力データに対する処理を実行する。
|
Result |
handleError(java.lang.Error e,
ExecutionContext context)
Error の例外処理を行う。
|
Result |
handleRuntimeException(java.lang.RuntimeException e,
ExecutionContext context)
RuntimeExceptionの例外処理を行う。
|
public java.lang.Object handle(Request<?> req, ExecutionContext context)
public Result handleError(java.lang.Error e, ExecutionContext context) throws java.lang.Error, java.lang.RuntimeException
ExceptionHandlerhandleError インタフェース内 ExceptionHandlere - 処理するErrorcontext - ExecutionContextjava.lang.Error - 例外を処理できない場合java.lang.RuntimeException - 例外を処理できない場合、または付け替えた例外public Result handleRuntimeException(java.lang.RuntimeException e, ExecutionContext context) throws java.lang.RuntimeException
ExceptionHandlerhandleRuntimeException インタフェース内 ExceptionHandlere - 処理する例外context - ExecutionContextjava.lang.RuntimeException - 例外を処理できない場合、または付け替えた例外