接口 AsyncUncaughtExceptionHandler

所有已知实现类:
SimpleAsyncUncaughtExceptionHandler
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface AsyncUncaughtExceptionHandler
A strategy for handling uncaught exceptions thrown from asynchronous methods.

An asynchronous method usually returns a Future instance that gives access to the underlying exception. When the method does not provide that return type, this handler can be used to manage such uncaught exceptions.

从以下版本开始:
3.0
作者:
Stephane Nicoll, TODAY
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Handle the given uncaught exception thrown from an asynchronous method.
  • 方法详细资料

    • handleUncaughtException

      void handleUncaughtException(Throwable ex, Method method, Object... params)
      Handle the given uncaught exception thrown from an asynchronous method.
      参数:
      ex - the exception thrown from the asynchronous method
      method - the asynchronous method
      params - the parameters used to invoked the method