0.0.0 • Published 10 years ago
lib-checked-domain v0.0.0
checked domain
Handle typed domain exceptions
install
npm install --save lib-checked-domain
usage
Catch known types, or throw when the type is unknown.
check(function () {
// throw a *typed* exception
throw check.Error('exit', 'bad exit')
})
.on('fail', function () {
// handle 'fail' type
})
.on('exit', function () {
// handle 'exit' type
})
see also
0.0.0
10 years ago