Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise.catch(errorname) and Promise.catch(errornames) #7

Open
rogierschouten opened this issue Jul 24, 2015 · 0 comments
Open

Promise.catch(errorname) and Promise.catch(errornames) #7

rogierschouten opened this issue Jul 24, 2015 · 0 comments

Comments

@rogierschouten
Copy link

To avoid having to declare a lot of error subclasses in typescript and referencing, it may be handy to be able to catch exceptions by their name, i.e. catch() could take a string or array of strings to compare the error name to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants