UNPKG

sequelize-store

Version:
37 lines (36 loc) 887 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParseError = exports.EntryError = exports.SchemaError = void 0; /** * Error for problems related to defined schema */ class SchemaError extends Error { constructor(message) { super(message); this.name = 'SchemaError'; } } exports.SchemaError = SchemaError; SchemaError.code = 'SCHEMA_ERR'; /** * Error for problems related to entries */ class EntryError extends Error { constructor(message) { super(message); this.name = 'EntryError'; } } exports.EntryError = EntryError; EntryError.code = 'ENTRY_ERR'; /** * Error for problems related to parsing entries */ class ParseError extends Error { constructor(message) { super(message); this.name = 'ParseError'; } } exports.ParseError = ParseError; ParseError.code = 'PARSE_ERR';