The base class for exceptions indicating errors in the program logic.
More...
#include <error.h>
|
| LogicError (const std::string &msg_, const std::string &context_, const char *type_, const char *error_string_) |
| Constructor for use by constructors of derived classes. More...
|
|
| LogicError (const std::string &msg_, const std::string &context_, const char *type_, int errno_) |
| Constructor for use by constructors of derived classes. More...
|
|
|
const char * | get_type () const |
| The type of this error (e.g. "DocNotFoundError".) More...
|
|
const std::string & | get_msg () const |
| Message giving details of the error, intended for human consumption. More...
|
|
const std::string & | get_context () const |
| 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...
|
|
The base class for exceptions indicating errors in the program logic.
A subclass of LogicError will be thrown if Xapian detects a violation of a class invariant or a logical precondition or postcondition, etc.
Definition at line 154 of file error.h.
◆ LogicError() [1/2]
Xapian::LogicError::LogicError |
( |
const std::string & |
msg_, |
|
|
const std::string & |
context_, |
|
|
const char * |
type_, |
|
|
const char * |
error_string_ |
|
) |
| |
|
inlineprivate |
Constructor for use by constructors of derived classes.
Definition at line 159 of file error.h.
◆ LogicError() [2/2]
Xapian::LogicError::LogicError |
( |
const std::string & |
msg_, |
|
|
const std::string & |
context_, |
|
|
const char * |
type_, |
|
|
int |
errno_ |
|
) |
| |
|
inlineprivate |
Constructor for use by constructors of derived classes.
Definition at line 165 of file error.h.
The documentation for this class was generated from the following file: