19 #ifndef SBUILD_CUSTOM_ERROR_H
20 #define SBUILD_CUSTOM_ERROR_H
22 #include <sbuild/error.h>
43 sbuild::error<T>(this->
format_error(nullptr, nullptr, nullptr, error, nullptr, nullptr, nullptr),
44 this->
format_reason(nullptr, nullptr, nullptr, error, nullptr, nullptr, nullptr))
57 sbuild::error<T>(this->
format_error(context, nullptr, nullptr, error, nullptr, nullptr, nullptr),
58 this->
format_reason(context, nullptr, nullptr, error, nullptr, nullptr, nullptr))
71 sbuild::error<T>(this->
format_error(nullptr, nullptr, nullptr, error, detail, nullptr, nullptr),
72 this->
format_reason(nullptr, nullptr, nullptr, error, detail, nullptr, nullptr))
83 template<
typename D,
typename E>
87 sbuild::error<T>(this->
format_error(nullptr, nullptr, nullptr, error, detail, detail2, nullptr),
88 this->
format_reason(nullptr, nullptr, nullptr, error, detail, detail2, nullptr))
100 template<
typename D,
typename E,
typename F>
105 sbuild::error<T>(this->
format_error(nullptr, nullptr, nullptr, error, detail, detail2, detail3),
106 this->
format_reason(nullptr, nullptr, nullptr, error, detail, detail2, detail3))
117 template<
typename C,
typename D>
121 sbuild::error<T>(this->
format_error(context, nullptr, nullptr, error, detail, nullptr, nullptr),
122 this->
format_reason(context, nullptr, nullptr, error, detail, nullptr, nullptr))
134 template<
typename C,
typename D,
typename E>
139 sbuild::error<T>(
format_error(context, nullptr, nullptr, error, detail, detail2, nullptr),
140 format_reason(context, nullptr, nullptr, error, detail, detail2, nullptr))
152 template<
typename C,
typename D,
typename E>
157 sbuild::error<T>(this->
format_error(context1, context2, nullptr, error, detail, nullptr, nullptr),
158 this->
format_reason(context1, context2, nullptr, error, detail, nullptr, nullptr))
171 template<
typename C,
typename D,
typename E,
typename F>
177 sbuild::error<T>(
format_error(context1, context2, nullptr, error, detail, detail2, nullptr),
178 format_reason(context1, context2, nullptr, error, detail, detail2, nullptr))
189 sbuild::error<T>::
format_reason(nullptr, nullptr, nullptr, error, nullptr, nullptr, nullptr))
200 sbuild::error<T>::
format_reason(nullptr, nullptr, nullptr, error, nullptr, nullptr, nullptr))
212 const std::runtime_error&
error):
214 sbuild::error<T>::
format_reason(context, nullptr, nullptr, error, nullptr, nullptr, nullptr))
228 sbuild::error<T>::
format_reason(context, nullptr, nullptr, error, nullptr, nullptr, nullptr))
custom_error(error_type error, D const &detail)
The constructor.
Definition: custom-error.h:69
error< T >::error_type error_type
The enum type providing the error codes for this type.
Definition: custom-error.h:35
Debian source builder components.
Definition: ctty.cc:31
custom_error(C const &context, error_type error, D const &detail)
The constructor.
Definition: custom-error.h:118
custom_error(const std::runtime_error &error)
The constructor.
Definition: custom-error.h:187
T error_type
The enum type providing the error codes for this type.
Definition: error.h:114
custom_error(error_type error, D const &detail, E const &detail2)
The constructor.
Definition: custom-error.h:84
custom_error(C const &context, error_type error)
The constructor.
Definition: custom-error.h:55
Error exception base class.
Definition: error.h:36
custom_error(C const &context1, D const &context2, error_type error, E const &detail, F const &detail2)
The constructor.
Definition: custom-error.h:172
custom_error(error_type error)
The constructor.
Definition: custom-error.h:42
custom_error(C const &context, const std::runtime_error &error)
The constructor.
Definition: custom-error.h:211
Error exception class.
Definition: error.h:110
custom_error(C const &context, error_type error, D const &detail, E const &detail2)
The constructor.
Definition: custom-error.h:135
Custom error.
Definition: custom-error.h:31
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.
custom_error(C const &context1, D const &context2, error_type error, E const &detail)
The constructor.
Definition: custom-error.h:153
virtual ~custom_error()
The destructor.
Definition: custom-error.h:233
custom_error(C const &context, const error_base &error)
The constructor.
Definition: custom-error.h:225
custom_error(const error_base &error)
The constructor.
Definition: custom-error.h:198
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.
custom_error(error_type error, D const &detail, E const &detail2, F const &detail3)
The constructor.
Definition: custom-error.h:101