Loading...
Searching...
No Matches
error_format.h
Go to the documentation of this file.
#ifndef SYSREPO_ERROR_FORMAT_H_
#define SYSREPO_ERROR_FORMAT_H_
#include <libyang/libyang.h>
#include "../sysrepo_types.h"
#ifdef __cplusplus
extern "C" {
#endif
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, ...);
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);
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, ...);
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);
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);
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);
#ifdef __cplusplus
}
#endif
#endif /* SYSREPO_ERROR_FORMAT_H_ */
sr_session_set_netconf_error
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....
sr_err_get_netconf_error_idx
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().
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.
srplg_errinfo_set_netconf_error
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.
srplg_errinfo_set_netconf_error2
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.
sr_session_set_netconf_error2
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.
sysrepo_types.h
public sysrepo types header
sr_session_ctx_t
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition sysrepo_types.h:99
sr_error_info_err_t
A single, detailed error message. Used in sr_error_info_t.
Definition sysrepo_types.h:159
sr_error_info_t
Detailed sysrepo session error information.
Definition sysrepo_types.h:169