lib-checked-domain

0.0.0 • Public • Published

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

/lib-checked-domain/

    Package Sidebar

    Install

    npm i lib-checked-domain

    Weekly Downloads

    20

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • groundwater