UNPKG

alacritty-theme-switch

Version:
40 lines (39 loc) 1.13 kB
/** * Error thrown when parsing TOML content fails. */ export class TomlParseError extends Error { constructor(content, options) { super(`Failed to parse TOML content.`, options); Object.defineProperty(this, "_tag", { enumerable: true, configurable: true, writable: true, value: "TomlParseError" }); Object.defineProperty(this, "content", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.content = content; } } export class TomlStringifyError extends Error { constructor(obj, options) { super(`Failed to stringify TOML object.`, options); Object.defineProperty(this, "_tag", { enumerable: true, configurable: true, writable: true, value: "TomlStringifyError" }); Object.defineProperty(this, "obj", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.obj = obj; } }