/usr/include/dballe/core/error.h is in libdballe-dev 7.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #ifndef DBALLE_CORE_ERROR_H
#define DBALLE_CORE_ERROR_H
#include <wreport/error.h>
namespace dballe {
/// Base exception for DB-All.e errors
struct error : public wreport::error
{
/**
* String description for an error code.
*
* It delegates to wreport::error::strerror for codes not known to
* DB-All.e, so it can be used instead of wreport::error::strerror.
*/
static const char* strerror(wreport::ErrorCode code);
};
/// Error in case of failed database operations
struct error_db : public error
{
wreport::ErrorCode code() const noexcept override { return wreport::WR_ERR_ODBC; }
};
}
#endif
|