INNER CODE UNIT · JavaScript
TerminateException
CloudI/CloudI · src/api/javascript/CloudI.js:190
var TerminateException = function TerminateException (timeout) {
var error = new Error('Terminate');
error.name = 'TerminateException';
this.message = error.message;
if (error.stack) {
this.stack = error.stack;
}
this._timeout = timeout;
}
TerminateException.prototype = Object.create(Error.prototype, {
name: { value: 'TerminateException' }
});
TerminateException.prototype.timeout = function () {
return this._timeout;
};
var FatalError = function FatalError (message) {
var error = new Error(message);
error.name = 'FatalError';