public final void setOnError (Runnable value)

Set the event handler to be called when an error occurs.

Parameters:
value    the error event handler.