doOnBeforeError

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

Please refer to the corresponding RxJava document.