---
name: "Search::Xapian::Error"
section: "3pm"
platform: "linux"
package: "libsearch-xapian-perl"
version: "1.2.25.5-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Search::Xapian::Error"
---

# Search::Xapian::Error(3pm)

Base class for all exceptions in Search::Xapian

## NAME

Search::Xapian::Error - Base class for all exceptions in Search::Xapian

## DESCRIPTION

This is an abstract class in C++, i.e. it cannot be instantiated directly. In Perl there is no such concept, but you should not need to create instances of this class yourself.

## METHODS

All exception objects have the following methods

### get\_msg

Returns a string with a descriptive error message, useful for outputting

### get\_type

The type of this error (e.g. "DocNotFoundError").

### get\_context

Optional context information, returned as a string

### get\_error\_string

Returns any error string from errno or similar associated with this error
