19 #ifndef SBUILD_PARSE_ERROR_H
20 #define SBUILD_PARSE_ERROR_H
22 #include <sbuild/custom-error.h>
48 sbuild::error<T>(this->
format_error(context, nullptr, nullptr, error, nullptr, nullptr, nullptr),
49 this->
format_reason(context, nullptr, nullptr, error, nullptr, nullptr, nullptr))
62 sbuild::error<T>(this->
format_error(nullptr, nullptr, nullptr, error, detail, nullptr, nullptr),
63 this->
format_reason(nullptr, nullptr, nullptr, error, detail, nullptr, nullptr))
78 sbuild::error<T>(this->
format_error(line, nullptr, nullptr, error, detail, nullptr, nullptr),
79 this->
format_reason(line, nullptr, nullptr, error, detail, nullptr, nullptr))
93 const std::string&
group,
96 sbuild::error<T>(this->
format_error(line, group, nullptr, error, detail, nullptr, nullptr),
97 this->
format_reason(line, group, nullptr, error, detail, nullptr, nullptr))
112 const std::string&
group,
113 const std::string& key,
116 sbuild::error<T>(this->
format_error(line, group, key, error, detail, nullptr, nullptr),
117 this->
format_reason(line, group, key, error, detail, nullptr, nullptr))
132 sbuild::error<T>(this->
format_error(group, nullptr, nullptr, error, detail, nullptr, nullptr),
133 this->
format_reason(group, nullptr, nullptr, error, detail, nullptr, nullptr))
147 const std::string& key,
150 sbuild::error<T>(this->
format_error(group, key, nullptr, error, detail, nullptr, nullptr),
151 this->
format_reason(group, key, nullptr, error, detail, nullptr, nullptr))
163 const std::runtime_error&
error):
165 sbuild::error<T>::
format_reason(context, nullptr, nullptr, error, nullptr, nullptr, nullptr))
176 const std::runtime_error&
error):
190 const std::string&
group,
191 const std::runtime_error&
error):
206 const std::string&
group,
207 const std::string& key,
208 const std::runtime_error&
error):
221 const std::runtime_error&
error):
223 sbuild::error<T>::
format_reason(group, nullptr, nullptr, error, nullptr, nullptr, nullptr))
235 const std::string& key,
236 const std::runtime_error&
error):
Debian source builder components.
Definition: ctty.cc:31
parse_error(error_type error, D const &detail)
The constructor.
Definition: parse-error.h:60
T error_type
The enum type providing the error codes for this type.
Definition: error.h:114
parse_error(size_t line, const std::string &group, const std::string &key, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:205
parse_error(size_t line, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:175
parse_error(size_t line, const std::string &group, error_type error, D const &detail)
The constructor.
Definition: parse-error.h:92
parse_error(size_t line, error_type error, D const &detail)
The constructor.
Definition: parse-error.h:75
parse_error(C const &context, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:162
parse_error(size_t line, const std::string &group, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:189
Error exception class.
Definition: error.h:110
parse_error(const std::string &group, const std::string &key, error_type error, D const &detail)
The constructor.
Definition: parse-error.h:146
Parse error.
Definition: parse-error.h:34
System group database entry.
Definition: util.h:824
static std::string format_error(A const &context1, B const &context2, C const &context3, error_type error, D const &detail1, E const &detail2, F const &detail3)
Format an error message.
parse_error(const std::string &group, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:220
parse_error(C const &context, error_type error)
The constructor.
Definition: parse-error.h:46
parse_error(const std::string &group, const std::string &key, const std::runtime_error &error)
The constructor.
Definition: parse-error.h:234
parse_error(const std::string &group, error_type error, D const &detail)
The constructor.
Definition: parse-error.h:129
parse_error(size_t line, const std::string &group, const std::string &key, error_type error, D const &detail)
The constructor.
Definition: parse-error.h:111
static std::string format_reason(A const &context1, B const &context2, C const &context3, R const &error, D const &detail1, E const &detail2, F const &detail3)
Format an reason string.