2.0.1 • Published 1 year ago

plugin-error v2.0.1

Weekly downloads
2,376,457
License
MIT
Repository
github
Last release
1 year ago

plugin-error

NPM version Downloads Build Status Coveralls Status

Error handling for Vinyl plugins.

Usage

var PluginError = require('plugin-error');

var err = new PluginError('test', {
  message: 'something broke',
});

var err = new PluginError({
  plugin: 'test',
  message: 'something broke',
});

var err = new PluginError('test', 'something broke');

var err = new PluginError('test', 'something broke', { showStack: true });

var existingError = new Error('OMG');
var err = new PluginError('test', existingError, { showStack: true });

API

new PluginError(pluginName, message[, options])

Error constructor that takes:

  • pluginName - a String that should be the module name of your plugin
  • message - a String message or an existing Error object
  • options - an Object of your options

Behavior:

  • By default the stack will not be shown. Set options.showStack to true if you think the stack is important for your error.
  • If you pass an error object as the message the stack will be pulled from that, otherwise one will be created.
  • If you pass in a custom stack string you need to include the message along with that.
  • Error properties will be included in err.toString(), but may be omitted by including { showProperties: false } in the options.

License

MIT

@crxs/gulp-crx@instructure/ui-icons-buildgulp-rev-collectreact-native-bluetooth2killi8n-react-native-fast-imageeditorconfig-lint-jshandywebpackcss-module-typescript-definition-creator-pluginrn-send-sms@rock-kit/ui-icons-buildreact-native-template-rfbasegulp-html-elements@doggistyle/library@anho/circleci-orb-toolsairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@sumaq/gulp-mustache-jsonthunderbirddeneme323112gulp-imu-importerftmn@piyushmishra/critical@ntt_app/react-native-custom-notificationgulp-impale@spothero/ace@temporg/ui-icons-buildgulp-abraiareact-native-covid-sdkreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@avrora/avszoos-mp-gulp-cdnifyreact-native-printer-brothersrn-pdf-reader-offline@gulp-amp/default@conorepo/gulp-amp@conorepo/gulp-whitespaces@sproutsocial/gulp-srigulp-plugin-aliuniappgulp-daiamond-princess-zoningui5-toolkit-gulpgulp-asset-visiongulp-regular-versiongulp-sitemap-re@infinitebrahmanuniverse/nolb-plugcp-gulp-prettiergulp-twigjs@everything-registry/sub-chunk-2448@doamatto/gulp-compile-handlebars@jacobq/gulp-jestwebpack-config-vacuumlabswebgame-cli@mlz/webui-gulp@formunauts/gulp-rev-rewrite@foxitsoftware/gulp-merge-addon@dsschneidermann/gulp-inlinejs@eccenca/gulp-tasks@geeky-apo/react-native-advanced-clipboard@ima/gulp-tasks@exuanbo/gulp-inject-inline@exuanbo/gulp-inline-source@ilukanets/gulp-to-jst@imhele/gulp-prettier@ideolumo/gulp-pug@existdb/gulp-existclaycli@informatix8/gulp-saxon-xslt@feq/gulp-css-min@feq/gulp-css-wrap@ish/gulp-registry@faizanhaider/iconsax@felipesimmi/react-native-datalogic-module@ffaubert/gulp-htmlhint@ffaubert/gulp-stylelint@invisiburu/gulp-memoize@johanblumenberg/gulp-mocha@lumjs/gulp-transformcoot@loymax-solutions/gulp-eslint@luego/gulp-shadow-files@justeat/gulp-gh-pages@fitbit/sdk@k15t/viewport-uploadercorruptisaepe@makeomatic/gulp-wrap-js@distelll/gulp-ng-annotate-patched@d3r/gulp-sass@docta/gulp-imagemin@docta/gulp-inline@docta/gulp-prettier@docta/gulp-stylelint@docta/gulp-csscomb@docta/gulp-htmlmin@doggistyle/sass@creativestyle/magesuite-frontend-builder@dameblanche/task-mails@ct.js/gulp-typescript@ctfdio/picocss-themes
2.0.1

1 year ago

2.0.0

2 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago