replace-color-ts
Version:
Replace color with another one pixel by pixel.
16 lines (15 loc) • 441 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const messages = {
PARAMETER_INVALID: "Parameter is not valid",
PARAMETER_REQUIRED: "Parameter is required",
};
class ReplaceColorError extends Error {
constructor(code, field) {
super(messages[code]);
this.name = this.constructor.name;
this.code = code;
this.field = field;
}
}
exports.default = ReplaceColorError;