Rx.Observable.prototype.doOnError(onError, [thisArg])
, Rx.Observable.prototype.tapOnError(onError, [thisArg])
{% if book.isPdf %}
{% else %}
{% endif %}
Invokes an action upon exceptional termination of the observable sequence.
This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline.
onError
(Function
): Function to invoke upon exceptional termination of the observable sequence.- [
thisArg
] (Any): Object to use as this when executing callback.
(Observable
): The source sequence with the side-effecting behavior applied.