doOnBeforeError

fun <T> Maybe<T>.doOnBeforeError(consumer: (Throwable) -> Unit): Maybe<T>

Calls the consumer with the emitted Throwable when the Maybe signals onError. The consumer is called before the observer is called.

Please refer to the corresponding RxJava document.