Nighttime Peanut Migrations

    raisejs

    1.0.0 • Public • Published

    raisejs

    npm install raisejs
    var raise = require('raisejs')
    raise('Something bad happened')    // throw new Error('Something bad happened')
    raise(MyError, 'Ouch!')            // throw new MyError('Ouch!')
    raise(new MyError('Ouch!'))        // throw new MyError('Ouch!')
    var userId = req.param('id') || raise(BadRequest, 'Please specify ID')

    Install

    npm i raisejs

    DownloadsWeekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • dtinth