Identifies the method that is called when a child component generates an error during rendering.
The method works like a catch block, but for components. If this method generates an error, then this
error will propagate to the closest OnError annotated method above it.
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 component stack during thrown error.
The method must also conform to the following constraints:
- Must not be annotated with any other react4j annotation
- Must not return a value
- Must not be private
- Must not be public
- Must not be static
- Must not be abstract
- Must not throw exceptions
- Must be accessible from the same package as the class annotated by
ReactComponent