Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/axios/lib/cancel/Cancel.js
1126 views
1
'use strict';
2
3
/**
4
* A `Cancel` is an object that is thrown when an operation is canceled.
5
*
6
* @class
7
* @param {string=} message The message.
8
*/
9
function Cancel(message) {
10
this.message = message;
11
}
12
13
Cancel.prototype.toString = function toString() {
14
return 'Cancel' + (this.message ? ': ' + this.message : '');
15
};
16
17
Cancel.prototype.__CANCEL__ = true;
18
19
module.exports = Cancel;
20
21