Initial Commit

This commit is contained in:
JonatanRek committed 2020-08-10 14:35:19 +02:00
commit 452829f0e1
3410 files changed
+523857

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
'use strict';
/**
* A `Cancel` is an object that is thrown when an operation is canceled.
*
* @class
* @param {string=} message The message.
*/
function Cancel(message) {
this.message = message;
}
Cancel.prototype.toString = function toString() {
return 'Cancel' + (this.message ? ': ' + this.message : '');
};
Cancel.prototype.__CANCEL__ = true;
module.exports = Cancel;