src/utils/paypal/agreements/error/execution-incomplete-error.js
/**
* @property params.attemptsCount
*/
class ExecutionIncompleteError extends Error {
constructor(reason) {
super(`Execution incomplete. Reason: ${reason}`);
}
static noTransaction(agreementId, owner, creatorTaskId) {
const reason = `Agreement "${agreementId}" has been executed, but there is no sufficient transactions`;
const error = new ExecutionIncompleteError(reason);
error.params = { agreementId, owner, creatorTaskId };
return error;
}
}
module.exports = ExecutionIncompleteError;