Angular throw stream error to capture it
Sat 05 Oct 2019
Use throwError(new Error()) to throw error if you put in of() stream will continue to run.
And your:
try {
} catch {
// ❗️ Will not throw an error if `of()` used, stream will continue
}