fun onError(onErrorAction: (Throwable) -> Unit): ProximityObserverBuilder
Specifies an action to be called whenever any error occurs. If not specified, all errors will be delivered through Log.e(...) by default.