35 #include <pdi/pdi_fwd.h>    37 #include <spdlog/fmt/fmt.h>    63     template<
typename S, 
typename... Args>
    66         m_what{fmt::format(format_str, std::forward<Args>(args)...)}
    75     const char* what() 
const noexcept 
override;
    88     template<
typename S, 
typename... Args>
   102     template<
typename S, 
typename... Args>
   106         std::ostringstream err_msg;
   107         if (!PC_status(tree) && tree.node) {
   108             if (tree.node->start_mark.line == tree.node->end_mark.line) {
   109                 err_msg << 
"Config_error in line " << tree.node->start_mark.line + 1 << 
": ";
   111                 err_msg << 
"Config_error in lines " << tree.node->start_mark.line + 1 << 
" - " << tree.node->end_mark.line << 
": ";
   114             err_msg << 
"Config_error: ";
   116         err_msg << fmt::format(format_str, std::forward<Args>(args)...);
   117         m_what = err_msg.str();
   129     template<
typename S, 
typename... Args>
   143     template<
typename S, 
typename... Args>
   157     template<
typename S, 
typename... Args>
   171     template<
typename S, 
typename... Args>
   185     template<
typename S, 
typename... Args>
   199     template<
typename S, 
typename... Args>
   213     template<
typename S, 
typename... Args>
   225 #endif // PDI_ERROR_H_ 
Right_error(const S &format_str, Args &&... args)
Definition: error.h:200
 
Type_error(const S &format_str, Args &&... args)
Definition: error.h:214
 
System_error(const S &format_str, Args &&... args)
Definition: error.h:172
 
PDI_status_t m_status
status of the error 
Definition: error.h:46
 
Value_error(const S &format_str, Args &&... args)
Definition: error.h:130
 
on an input call, no such data is available 
Definition: pdi.h:77
 
Unavailable_error(const S &format_str, Args &&... args)
Definition: error.h:89
 
A system error occured (OS, etc.) 
Definition: pdi.h:87
 
Impl_error(const S &format_str, Args &&... args)
Definition: error.h:158
 
A value expression is invalid. 
Definition: pdi.h:81
 
The configuration file is invalid. 
Definition: pdi.h:79
 
State_error(const S &format_str, Args &&... args)
Definition: error.h:186
 
A call to a function has been made at a wrong time (e.g. 
Definition: pdi.h:91
 
Invalid type error. 
Definition: pdi.h:95
 
Tried to load a non-existing plugin. 
Definition: pdi.h:83
 
PDI_status_t
Error codes of PDI. 
Definition: pdi.h:73
 
A conflict of onwership over a content has been raised. 
Definition: pdi.h:93
 
Plugin_error(const S &format_str, Args &&... args)
Definition: error.h:144
 
Error(PDI_status_t errcode, const S &format_str, Args &&... args)
Creates a PDI error. 
Definition: error.h:64
 
std::string m_what
message of the error 
Definition: error.h:49
 
Definition: array_datatype.h:37
 
Implementation limitation (typically an unimplemented feature) 
Definition: pdi.h:85
 
Config_error(PC_tree_t tree, const S &format_str, Args &&... args)
Definition: error.h:103