try-catch-decorator

A decorator that wraps a method within a try-catch block. If an error is thrown, it will be caught and re-thrown.

Browse on unpkg