Annotation Type ExceptionHandler


@Retention(RUNTIME) @Target(METHOD) @API(status=STABLE) public @interface ExceptionHandler
Annotation used to map methods to exception handlers.

The method signature is not fixed, and the parameters can be any combination of:

See ExceptionHandler.handle(ExceptionContext) for information about the exception handler behavior.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the type of exceptions caught by the exception handler.
  • Element Details

    • value

      @NonNull Class<? extends Throwable> value
      Returns the type of exceptions caught by the exception handler.
      Returns:
      the exception type