onerror

open fun onerror(error: Throwable)(source)

Callback for when an error occurs.

Note that errors are not necessarily fatal they are used for reporting any kind of exceptional condition out of band.