initial commit
[urlittler] / src / db / errors.js
1 'use strict';
2
3 const { DatabaseError } = require('../errors');
4
5 class NotImplemented extends DatabaseError {
6 constructor(...args) {
7 super(...args);
8 Error.captureStackTrace(NotImplemented);
9 }
10 }
11
12 class UnexpectedResult extends DatabaseError {
13 constructor(...args) {
14 super(...args);
15 Error.captureStackTrace(UnexpectedResult);
16 }
17 }
18
19 class UnsupportedEngine extends DatabaseError {
20 constructor(...args) {
21 super(...args);
22 Error.captureStackTrace(UnsupportedEngine);
23 }
24 }
25
26 module.exports = {
27 NotImplemented,
28 UnexpectedResult,
29 UnsupportedEngine,
30 };