19 #ifndef SBUILD_CUSTOM_ERROR_H 20 #define SBUILD_CUSTOM_ERROR_H 22 #include <sbuild/sbuild-error.h> 23 #include <sbuild/sbuild-null.h> 84 template<
typename D,
typename E>
101 template<
typename D,
typename E,
typename F>
118 template<
typename C,
typename D>
135 template<
typename C,
typename D,
typename E>
153 template<
typename C,
typename D,
typename E>
172 template<
typename C,
typename D,
typename E,
typename F>
213 std::runtime_error
const&
error):
custom_error(error_type error, D const &detail)
The constructor.
Definition: sbuild-custom-error.h:70
error< T >::error_type error_type
The enum type providing the error codes for this type.
Definition: sbuild-custom-error.h:36
Debian source builder components.
Definition: sbuild-auth-null.h:24
custom_error(C const &context, error_type error, D const &detail)
The constructor.
Definition: sbuild-custom-error.h:119
T error_type
The enum type providing the error codes for this type.
Definition: sbuild-error.h:114
custom_error(error_base const &error)
The constructor.
Definition: sbuild-custom-error.h:199
custom_error(error_type error, D const &detail, E const &detail2)
The constructor.
Definition: sbuild-custom-error.h:85
custom_error(C const &context, error_type error)
The constructor.
Definition: sbuild-custom-error.h:56
Error exception base class.
Definition: sbuild-error.h:36
custom_error(C const &context1, D const &context2, error_type error, E const &detail, F const &detail2)
The constructor.
Definition: sbuild-custom-error.h:173
custom_error(error_type error)
The constructor.
Definition: sbuild-custom-error.h:43
custom_error(C const &context, error_base const &error)
The constructor.
Definition: sbuild-custom-error.h:226
Error exception class.
Definition: sbuild-error.h:110
Null.
Definition: sbuild-null.h:33
custom_error(C const &context, std::runtime_error const &error)
The constructor.
Definition: sbuild-custom-error.h:212
custom_error(C const &context, error_type error, D const &detail, E const &detail2)
The constructor.
Definition: sbuild-custom-error.h:136
Custom error.
Definition: sbuild-custom-error.h:32
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: sbuild-custom-error.h:154
virtual ~custom_error()
The destructor.
Definition: sbuild-custom-error.h:234
custom_error(std::runtime_error const &error)
The constructor.
Definition: sbuild-custom-error.h:188
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: sbuild-custom-error.h:102