#include <sbuild-parse-error.h>
Inheritance diagram for sbuild::parse_error:
Public Types | |
enum | type { NONE, BAD_FILE, BAD_VALUE, INVALID_LINE, NO_GROUP, INVALID_GROUP, DUPLICATE_GROUP, NO_KEY, DUPLICATE_KEY, MISSING_KEY, DISALLOWED_KEY } |
Public Member Functions | |
parse_error (type error, std::string const &detail) | |
The constructor. | |
parse_error (size_t line, type error, std::string const &detail) | |
The constructor. | |
parse_error (size_t line, std::string const &group, type error, std::string const &detail) | |
The constructor. | |
parse_error (size_t line, std::string const &group, std::string const &key, type error, std::string const &detail) | |
The constructor. | |
parse_error (std::string const &group, type error, std::string const &detail) | |
The constructor. | |
parse_error (std::string const &group, std::string const &key, type error, std::string const &detail) | |
The constructor. | |
Static Private Member Functions | |
static const char * | get_error (type error) |
Get a translated error string. | |
static std::string | format_error (type error, std::string const &detail) |
Format an error message. | |
static std::string | format_error (size_t line, type error, std::string const &detail) |
Format an error message. | |
static std::string | format_error (size_t line, std::string const &group, type error, std::string const &detail) |
Format an error message. | |
static std::string | format_error (size_t line, std::string const &group, std::string const &key, type error, std::string const &detail) |
Format an error message. | |
static std::string | format_error (std::string const &group, type error, std::string const &detail) |
Format an error message. | |
static std::string | format_error (std::string const &group, std::string const &key, type error, std::string const &detail) |
Format an error message. | |
Static Private Attributes | |
static std::map< type, const char * > | error_strings |
Mapping between error code and string. |
|
|
The constructor.
|
|
The constructor.
|
|
The constructor.
|
|
The constructor.
|
|
The constructor.
|
|
The constructor.
|
|
Format an error message.
|
|
Format an error message.
|
|
Format an error message.
|
|
Format an error message.
|
|
Format an error message.
|
|
Format an error message.
|
|
Get a translated error string.
|
|
Mapping between error code and string.
|