sysrepo  2.11.7
YANG-based system repository for all-around configuration management.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
error_format.h
Go to the documentation of this file.
1 
17 #ifndef SYSREPO_ERROR_FORMAT_H_
18 #define SYSREPO_ERROR_FORMAT_H_
19 
20 #include <libyang/libyang.h>
21 
22 #include "../sysrepo_types.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
64 int sr_session_set_netconf_error(sr_session_ctx_t *session, const char *error_type, const char *error_tag,
65  const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count, ...);
66 
84 int sr_session_set_netconf_error2(sr_session_ctx_t *session, const char *error_type, const char *error_tag,
85  const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count,
86  const char **error_info_elems, const char **error_info_values);
87 
104 int srplg_errinfo_set_netconf_error(sr_error_info_t **err_info, const char *error_type, const char *error_tag,
105  const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count, ...);
106 
124 int srplg_errinfo_set_netconf_error2(sr_error_info_t **err_info, const char *error_type, const char *error_tag,
125  const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count,
126  const char **error_info_elems, const char **error_info_values);
127 
142 int sr_err_get_netconf_error(const sr_error_info_err_t *err, const char **error_type, const char **error_tag,
143  const char **error_app_tag, const char **error_path, const char **error_message,
144  const char ***error_info_elements, const char ***error_info_values, uint32_t *error_info_count);
145 
149 int sr_err_get_netconf_error_idx(const sr_error_info_err_t *err, uint32_t idx, const char **error_type, const char **error_tag,
150  const char **error_app_tag, const char **error_path, const char **error_message,
151  const char ***error_info_elements, const char ***error_info_values, uint32_t *error_info_count);
152 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 #endif /* SYSREPO_ERROR_FORMAT_H_ */
int sr_session_set_netconf_error2(sr_session_ctx_t *session, const char *error_type, const char *error_tag, const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count, const char **error_info_elems, const char **error_info_values)
Set NETCONF callback error or add another if a NETCONF error has already been set.
int srplg_errinfo_set_netconf_error2(sr_error_info_t **err_info, const char *error_type, const char *error_tag, const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count, const char **error_info_elems, const char **error_info_values)
Set NETCONF plugin callback error or add another if a NETCONF error has already been set...
int sr_err_get_netconf_error_idx(const sr_error_info_err_t *err, uint32_t idx, const char **error_type, const char **error_tag, const char **error_app_tag, const char **error_path, const char **error_message, const char ***error_info_elements, const char ***error_info_values, uint32_t *error_info_count)
Deprecated, every NETCONF error has its own err, use sr_err_get_netconf_error().
int sr_err_get_netconf_error(const sr_error_info_err_t *err, const char **error_type, const char **error_tag, const char **error_app_tag, const char **error_path, const char **error_message, const char ***error_info_elements, const char ***error_info_values, uint32_t *error_info_count)
Get NETCONF callback error.
Detailed sysrepo session error information.
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition: sysrepo_types.h:99
A single, detailed error message. Used in sr_error_info_t.
int srplg_errinfo_set_netconf_error(sr_error_info_t **err_info, const char *error_type, const char *error_tag, const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count,...)
Set NETCONF plugin callback error or add another if a NETCONF error has already been set...
int sr_session_set_netconf_error(sr_session_ctx_t *session, const char *error_type, const char *error_tag, const char *error_app_tag, const char *error_path, const char *error_message, uint32_t error_info_count,...)
Set NETCONF callback error or add another if a NETCONF error has already been set. Specifically, sets the error message, error format, and error data encoding all the NETCONF-specific error information.