Update for 1.4.20
[xapian.git] / xapian-bindings / perl / Xapian / Error.pm
blob5f76693fe234dcbfeb2a42c4062b9d94d8a4cc0c
1 package Xapian::Error;
3 =head1 NAME
5 Xapian::Error - Base class for all exceptions in Xapian
7 =head1 DESCRIPTION
9 This is an abstract class in C++, i.e. it cannot be instantiated directly,
10 hence in Perl it has no C<new> method.
12 =head2 Compatibility with Search::Xapian
14 Search::Xapian overloads <""> (stringification) on this class for compatibility
15 with Search::Xapian < 1.2.3 which threw string exceptions in certain cases.
16 1.2.3 was released in 2010, so you can safely assume that all exceptions from
17 Search::Xapian are objects now.
19 =head1 METHODS
21 All exception objects have the following methods
23 =head2 get_msg
25 Returns a string with a descriptive error message, useful for outputting
27 =head2 get_type
29 The type of this error (e.g. "DocNotFoundError").
31 =head2 get_context
33 Optional context information, returned as a string
35 =head2 get_error_string
37 Returns any error string from errno or similar associated with this error
39 =cut