ode>onEvent</code> - event consumer.</dd>
<dd><code>onError</code> - error consumer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - when the any of the provided parameters is <code>null</code>.</dd>
</dl>
</li>
</ul>
<a id="register(java.util.function.Consumer,java.u