Class

IndexError

IndexError(msg)

Constructor

# new IndexError(msg)

Represents an error related to CouchDB index operations

Error thrown when there is an issue with CouchDB indexes

Parameters:
Name Type Description
msg string | Error

The error message or Error object

View Source errors.ts, line 20

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);
  }
}

Classes

IndexError

Represents an error related to CouchDB index operations