Annotation Interface ExceptionHandler


@Retention(RUNTIME) @Target(METHOD) public @interface ExceptionHandler
Declares a method as a handler for a specific Throwable type. The annotated method will be invoked when the given exception is thrown.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Throwable>