From d6b796750619ff2edf455ad51ba5db6796ce56b7 Mon Sep 17 00:00:00 2001 From: Jay Phelps Date: Thu, 26 Jan 2017 17:59:22 -0800 Subject: [PATCH] docs(catch): include marble diagram --- src/operator/catch.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/operator/catch.ts b/src/operator/catch.ts index ab7aeed5d3..f6e4fe74ab 100644 --- a/src/operator/catch.ts +++ b/src/operator/catch.ts @@ -8,6 +8,8 @@ import { subscribeToResult } from '../util/subscribeToResult'; /** * Catches errors on the observable to be handled by returning a new observable or throwing an error. * + * + * * @example Continues with a different Observable when there's an error * * Observable.of(1, 2, 3, 4, 5) @@ -18,7 +20,8 @@ import { subscribeToResult } from '../util/subscribeToResult'; * return n; * }) * .catch(err => Observable.of('I', 'II', 'III', 'IV', 'V')) - * .subscribe(x => console.log(x)); // -> 1, 2, 3, I, II, III, IV, V + * .subscribe(x => console.log(x)); + * // 1, 2, 3, I, II, III, IV, V * * @example Retries the caught source Observable again in case of error, similar to retry() operator *