Xapian::Error(3)

πŸ¦‹ Xapian::Error(3) πŸ¦‹

okay so this is the Xapian::Error(3) page from the User Contributed Perl Documentation, and it’s all about Search::Xapian::Error β€” the base class for every exception in Search::Xapian. πŸ’…


✨ NAME ✨

  • Search::Xapian::Error β€” base class for all exceptions in Search::Xapian 🫢

🌸 DESCRIPTION 🌸

lowkey important vibe check: in C++ this is an abstract class, meaning it cannot be instantiated directly. no cap. πŸ’€

In Perl there is no such concept, but bestie, you should not need to create instances of this class yourself. 🧚


πŸ’– METHODS πŸ’–

All exception objects have the following methods, periodt. πŸ‘‘

πŸŽ€ get_msg πŸŽ€

Returns a string with a descriptive error message, which is useful for outputting. literally made for showing you what went wrong. 😭

πŸ¦‹ get_type πŸ¦‹

The type of this error, e.g. "DocNotFoundError". iykyk. ✨

🌈 get_context 🌈

Optional context information, returned as a string. extra lore, basically. πŸ™ˆ

πŸ’œ get_error_string πŸ’œ

Returns any error string from errno or similar associated with this error. yes, that kind of system-error tea. πŸ“


bestie reminder: this class is abstract in C++, so don’t try to instantiate it directly there β€” and in Perl you shouldn’t need to make your own instances either. πŸ’…

sign-off time: this iconic page comes from perl v5.42.0, dated 2022-02-28, and it is the Xapian::Error(3) page β€” mwah πŸ’‹

πŸ“¦ where this page comes from