@decaf-ts/for-couchdb
Version:
decaf-ts couchdb wrappers
29 lines • 933 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndexError = void 0;
const db_decorators_1 = require("@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);
* }
* }
*/
class IndexError extends db_decorators_1.BaseError {
constructor(msg) {
super(IndexError.name, msg, 404);
}
}
exports.IndexError = IndexError;
//# sourceMappingURL=IndexError.js.map
//# sourceMappingURL=IndexError.cjs.map