onError

abstract var onError: (Throwable) -> Unit

Callback called when any error occurred. For finnhub error responses you will get FinnhubException with the received message. For all other errors the original exception will be emitted.