atomico
Version:
Atomico is a small library for the creation of interfaces based on web-components, only using functions and hooks.
18 lines (15 loc) • 362 B
JavaScript
export class Error {
/**
*
* @param {HTMLElement} target
* @param {string} message
* @param {string} value
*/
constructor(target, message, value) {
this.message = message;
this.target = target;
this.value = value;
}
}
export class PropError extends Error {}
export class ParseError extends Error {}