src/services/errors.js
function NoMatchingOperatorError(message) {
this.name = 'NoMatchingOperatorError';
this.message = message || 'The given operator is not handled.';
this.stack = (new Error()).stack;
}
NoMatchingOperatorError.prototype = new Error();
function InvalidFiltersFormatError(message) {
this.name = 'InvalidFiltersFormatError';
this.message = message || 'The filters format is not a valid JSON string.';
this.stack = (new Error()).stack;
}
InvalidFiltersFormatError.prototype = new Error();
function InvalidParameterError(message) {
this.name = 'InvalidParameterError';
this.message = message || 'The given parameter is invalid.';
this.stack = (new Error()).stack;
}
InvalidParameterError.prototype = new Error();
exports.NoMatchingOperatorError = NoMatchingOperatorError;
exports.InvalidFiltersFormatError = InvalidFiltersFormatError;
exports.InvalidParameterError = InvalidParameterError;