xapian-core  2.0.0
Private Member Functions | List of all members
Xapian::RuntimeError Class Reference

The base class for exceptions indicating errors only detectable at runtime. More...

#include <error.h>

+ Inheritance diagram for Xapian::RuntimeError:
+ Collaboration diagram for Xapian::RuntimeError:

Private Member Functions

 RuntimeError (std::string_view msg_, std::string_view context_, const char *type_, const char *error_string_)
 Constructor for use by constructors of derived classes. More...
 
 RuntimeError (std::string_view msg_, std::string_view context_, const char *type_, int errno_)
 Constructor for use by constructors of derived classes. More...
 

Additional Inherited Members

- Public Member Functions inherited from Xapian::Error
 Error (const Error &)=default
 Default copy constructor. More...
 
const char * get_type () const noexcept
 The type of this error (e.g. "DocNotFoundError".) More...
 
const std::string & get_msg () const noexcept
 Message giving details of the error, intended for human consumption. More...
 
const std::string & get_context () const noexcept
 Optional context information. More...
 
const char * get_error_string () const
 Returns any system error string associated with this exception. More...
 
std::string get_description () const
 Return a string describing this object. More...
 

Detailed Description

The base class for exceptions indicating errors only detectable at runtime.

A subclass of RuntimeError will be thrown if Xapian detects an error which is exception derived from RuntimeError is thrown when an error is caused by problems with the data or environment rather than a programming mistake.

Definition at line 164 of file error.h.

Constructor & Destructor Documentation

◆ RuntimeError() [1/2]

Xapian::RuntimeError::RuntimeError ( std::string_view  msg_,
std::string_view  context_,
const char *  type_,
const char *  error_string_ 
)
inlineprivate

Constructor for use by constructors of derived classes.

Definition at line 169 of file error.h.

◆ RuntimeError() [2/2]

Xapian::RuntimeError::RuntimeError ( std::string_view  msg_,
std::string_view  context_,
const char *  type_,
int  errno_ 
)
inlineprivate

Constructor for use by constructors of derived classes.

Definition at line 175 of file error.h.


The documentation for this class was generated from the following file: