1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/axios/lib/cancel/Cancel.js

20 lines
385 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'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;