UNPKG

@opra/common

Version:
16 lines (15 loc) 439 B
export class SyntaxError extends TypeError { } export class FilterValidationError extends TypeError { constructor(message) { super(typeof message === 'string' ? message : message?.message); if (typeof message === 'object') Object.assign(this, message); } } export class FilterParseError extends Error { constructor(message, args) { super(message); Object.assign(this, args); } }