UNPKG

@decaf-ts/for-postgres

Version:
22 lines (21 loc) 675 B
import { BaseError } from "@decaf-ts/db-decorators"; /** * @description Error thrown when there is an issue with CouchDB indexes * @summary Represents an error related to CouchDB index operations * @param {string|Error} msg - The error message or Error object * @class * @category Errors * @example * // Example of using IndexError * try { * // Some code that might throw an index error * throw new IndexError("Index not found"); * } catch (error) { * if (error instanceof IndexError) { * console.error("Index error occurred:", error.message); * } * } */ export declare class IndexError extends BaseError { constructor(msg: string | Error); }