taggedjs
Version:
tagged template reactive html
27 lines • 834 B
JavaScript
export class TagError extends Error {
details;
constructor(message, errorCode, details = {}) {
super(message);
this.name = TagError.name;
this.details = { ...details, errorCode };
}
}
export class ArrayNoKeyError extends TagError {
constructor(message, details) {
super(message, 'array-no-key-error', details);
this.name = ArrayNoKeyError.name;
}
}
export class StateMismatchError extends TagError {
constructor(message, details) {
super(message, 'state-mismatch-error', details);
this.name = StateMismatchError.name;
}
}
export class SyncCallbackError extends TagError {
constructor(message, details) {
super(message, 'sync-callback-error', details);
this.name = SyncCallbackError.name;
}
}
//# sourceMappingURL=errors.js.map