CrabDude / trycatch

An asynchronous domain-based exception handler with long stack traces for node.js
MIT License
246 stars 17 forks source link

Add typed catch support #33

Open CrabDude opened 10 years ago

CrabDude commented 10 years ago

And Error.create for convenience.

Something like...

trycatch(function() {
  ...
}, [EvalError], function(err) {
  // only catch EvalError
})