Nobody Peels Mangoes

    error-object-polyfill

    1.2.25 • Public • Published

    error-object-polyfill.js

    Replace your lame string errors with object versions.

    Usage

    Use Error.create to pass objects as error messages. That's it, really simple, one line error objects, go to town!

    throw Error.create({ title: 'Message', details: { data: {} } }, 'OPTIONAL_ERROR_CODE');

    Install

    npm i error-object-polyfill

    DownloadsWeekly Downloads

    956

    Version

    1.2.25

    License

    GPL-3.0

    Unpacked Size

    39.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • wparad
    • rhosys