Add license information.
[ustaxlib.git] / src / core / Errors.ts
1 // Copyright 2020 Blue Static <https://www.bluestatic.org>
2 // This program is free software licensed under the GNU General Public License,
3 // version 3.0. The full text of the license can be found in LICENSE.txt.
4 // SPDX-License-Identifier: GPL-3.0-only
5
6 export class InconsistencyError extends Error {
7 constructor(m: string) {
8 super(m);
9 Object.setPrototypeOf(this, InconsistencyError.prototype);
10 }
11 };
12
13 export class UnsupportedFeatureError extends Error {
14 constructor(m: string) {
15 super(m);
16 Object.setPrototypeOf(this, UnsupportedFeatureError.prototype);
17 }
18 };
19
20 export class NotFoundError extends Error {
21 constructor(m: string) {
22 super(m);
23 Object.setPrototypeOf(this, NotFoundError.prototype);
24 }
25 };