48 const char*
what() const noexcept override;
52 template<typename error_t, class T>
54 operator<< (error_t &o, const T &_info) noexcept {
60 template<
typename error_t,
class T>
61 typename std::enable_if<std::is_base_of<generic_error, error_t>::value, error_t&>::type
73 #define XERUS_THROW(...) throw (__VA_ARGS__ << "\nexception thrown in function: " << (__func__) << " (" << (__FILE__) <<" : " << (__LINE__) << ")\n") Header file for some elementary string manipulation routines.
The main namespace of xerus.
const char * what() const noexcept override
The xerus exception class.
generic_error()
: Normal constructor without preset error_info.
static XERUS_force_inline std::string to_string(const bool obj)
std::ostream & operator<<(std::ostream &_out, const std::tuple< Tp... > &_tuple)
Allow to pipe tuples to ostreams.
std::string error_info
String containing all relevant information concerning this error.