aboutsummaryrefslogtreecommitdiff
path: root/node_modules/browserslist/error.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/browserslist/error.js')
-rw-r--r--node_modules/browserslist/error.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/browserslist/error.js b/node_modules/browserslist/error.js
new file mode 100644
index 0000000..b3bc0fe
--- /dev/null
+++ b/node_modules/browserslist/error.js
@@ -0,0 +1,12 @@
+function BrowserslistError (message) {
+ this.name = 'BrowserslistError'
+ this.message = message
+ this.browserslist = true
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, BrowserslistError)
+ }
+}
+
+BrowserslistError.prototype = Error.prototype
+
+module.exports = BrowserslistError