Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created March 18, 2016 15:25
Show Gist options
  • Save chrisjlee/3b41062ab883b33454e8 to your computer and use it in GitHub Desktop.
Save chrisjlee/3b41062ab883b33454e8 to your computer and use it in GitHub Desktop.
Handling Promise errors
promise.catch(error => {
if (error instanceof OkayError) {
return Observable.of('okay');
} else {
throw error
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment