eligible-api
Version:
Implementation of Eligible (https://eligible.com/) REST API
17 lines (14 loc) • 420 B
JavaScript
/**
* Created by matan on 11/4/15.
*/
function BaseEligibleError(message){
Error.call(message);
this.message = message;
this.name = this.constructor.name;
if (Error.captureStackTrace){
Error.captureStackTrace(this, this.constructor.name);
}
}
BaseEligibleError.prototype = Object.create(Error.prototype);
BaseEligibleError.prototype.constructor = BaseEligibleError;
module.exports = BaseEligibleError;