@mongosh/errors
Advanced tools
Comparing version 0.0.1-alpha.13 to 0.0.1-alpha.14
@@ -32,3 +32,11 @@ class MongoshRuntimeError extends Error { | ||
class MongoshWarning extends Error { | ||
constructor(...args) { | ||
super(...args); | ||
this.name = 'MongoshWarning'; | ||
} | ||
} | ||
export { | ||
MongoshWarning, | ||
MongoshRuntimeError, | ||
@@ -35,0 +43,0 @@ MongoshInternalError, |
@@ -13,2 +13,5 @@ declare class MongoshRuntimeError extends Error { | ||
} | ||
export { MongoshRuntimeError, MongoshInternalError, MongoshInvalidInputError, MongoshUnimplementedError }; | ||
declare class MongoshWarning extends Error { | ||
constructor(...args: any[]); | ||
} | ||
export { MongoshWarning, MongoshRuntimeError, MongoshInternalError, MongoshInvalidInputError, MongoshUnimplementedError }; |
@@ -91,2 +91,16 @@ "use strict"; | ||
exports.MongoshInvalidInputError = MongoshInvalidInputError; | ||
var MongoshWarning = (function (_super) { | ||
__extends(MongoshWarning, _super); | ||
function MongoshWarning() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var _this = _super.apply(this, __spread(args)) || this; | ||
_this.name = 'MongoshWarning'; | ||
return _this; | ||
} | ||
return MongoshWarning; | ||
}(Error)); | ||
exports.MongoshWarning = MongoshWarning; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@mongosh/errors", | ||
"version": "0.0.1-alpha.13", | ||
"version": "0.0.1-alpha.14", | ||
"description": "MongoDB Shell Errors Package", | ||
@@ -27,3 +27,3 @@ "homepage": "https://github.com/mongodb-js/mongosh", | ||
}, | ||
"gitHead": "cbd3d640a1a089fd677f7136e3d80f70bce7633f" | ||
"gitHead": "d505622df7589da25592a1abfe62cb76de702b3b" | ||
} |
@@ -21,2 +21,7 @@ # `@mongosh/errors` | ||
#### MongoshWarning(msg) | ||
This error is used to give user a warning about the current execution. | ||
__args:__ | ||
- __msg:__ type string. Describes the warning. | ||
#### MongoshUnimplementedError(msg) | ||
@@ -23,0 +28,0 @@ This error is used to API endpoints that are not yet implemented. |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22408
207
65
1