UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

26 lines 833 B
import { InternalError } from "@decaf-ts/db-decorators"; /** * @description Error thrown during query operations * @summary Represents errors that occur during query building or execution * @param {string | Error} msg - The error message or Error object * @class QueryError * @category Errors */ export class QueryError extends InternalError { constructor(msg) { super(msg, QueryError.name, 500); } } /** * @description Error thrown during pagination operations * @summary Represents errors that occur during pagination setup or execution * @param {string | Error} msg - The error message or Error object * @class PagingError * @category Errors */ export class PagingError extends InternalError { constructor(msg) { super(msg, PagingError.name, 500); } } //# sourceMappingURL=errors.js.map