Annotation Type ExceptionHandler


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface ExceptionHandler
    Indicates a method for handling exceptions that occur during the invocation of Before, Attribute or Uri handler methods.

    Handlers can be limited to specific exceptions. The implementation invokes every matching handler, in an order that is undefined.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends java.lang.Throwable>[] value
      Specifies the type of exceptions that the method should handle.
    • Element Detail

      • value

        java.lang.Class<? extends java.lang.Throwable>[] value
        Specifies the type of exceptions that the method should handle. If no types are specified the method will handle every type of exception.
        Returns:
        Default:
        {}