@Documented
@Target(value=METHOD)
public @interface OnError
The method can have up to two optional parameters. One is of type JsError and indicates
the error that was thrown. The other parameter is of type ReactErrorInfo and it contains
information about the view stack when the error was thrown.
The method must also conform to the following constraints:
ViewSuppressWarnings or SuppressReact4jWarnings annotations with a key
"React4j:PublicMethod". This warning is also suppressed by the annotation processor if it is implementing
an interface method.
View annotation as the method is not
expected to be invoked outside the view. A warning will be generated but can be suppressed by the
SuppressWarnings or SuppressReact4jWarnings annotations with a key "React4j:ProtectedMethod".