\hypertarget{elektra__error_8c}{}\section{elektra\+\_\+error.\+c File Reference}
\label{elektra__error_8c}\index{elektra\+\_\+error.\+c@{elektra\+\_\+error.\+c}}


Elektra error codes.  


{\ttfamily \#include \char`\"{}elektra/conversion.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}elektra/error.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdberrors.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdbhelper.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdbprivate.\+h\char`\"{}}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
Include dependency graph for elektra\+\_\+error.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{elektra__error_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Elektra\+Error $\ast$ \hyperlink{elektra__error_8c_ac5ad6739160c566b6189f7511b1def98}{elektra\+Error\+Create} (Elektra\+Error\+Code code, const char $\ast$description, \hyperlink{kdbprivate_8h_a12c616a1033bddd43fab10d0f777daad}{Elektra\+Error\+Severity} severity)
\begin{DoxyCompactList}\small\item\em Creates a new Elektra\+Error using the provided values. \end{DoxyCompactList}\item 
Elektra\+Error\+Code \hyperlink{group__highlevel_gaa78113745c933e9c0301837e4057cad6}{elektra\+Error\+Code} (const Elektra\+Error $\ast$error)
\item 
const char $\ast$ \hyperlink{group__highlevel_ga781cda83af3981a55321e7c613afbef0}{elektra\+Error\+Description} (const Elektra\+Error $\ast$error)
\item 
\hyperlink{kdbprivate_8h_a12c616a1033bddd43fab10d0f777daad}{Elektra\+Error\+Severity} \hyperlink{group__highlevel_ga961716e42cf36d92cccdb64d7d2158cf}{elektra\+Error\+Severity} (const Elektra\+Error $\ast$error)
\item 
int \hyperlink{group__highlevel_gabb19e02beb876844df4e1e8788b3c27d}{elektra\+K\+D\+B\+Error\+Code} (const Elektra\+Error $\ast$error)
\item 
const char $\ast$ \hyperlink{group__highlevel_ga5aab7f481b5c7fc7db0ee5909e6d6863}{elektra\+K\+D\+B\+Error\+Description} (const Elektra\+Error $\ast$error)
\item 
\hyperlink{kdbprivate_8h_a12c616a1033bddd43fab10d0f777daad}{Elektra\+Error\+Severity} \hyperlink{group__highlevel_gab736cb28c37e4bd643e4aa965a210ca5}{elektra\+K\+D\+B\+Error\+Severity} (const Elektra\+Error $\ast$error)
\item 
Elektra\+K\+D\+B\+Error\+Group \hyperlink{group__highlevel_ga6c5c31f358cf4282fde53eee168e5331}{elektra\+K\+D\+B\+Error\+Group} (const Elektra\+Error $\ast$error)
\item 
Elektra\+K\+D\+B\+Error\+Module \hyperlink{group__highlevel_ga5b97344662184766bb6ac3a028a479b6}{elektra\+K\+D\+B\+Error\+Module} (const Elektra\+Error $\ast$error)
\item 
const char $\ast$ \hyperlink{group__highlevel_ga9d988d59b288338f86c57b28ea8b8541}{elektra\+K\+D\+B\+Error\+Reason} (const Elektra\+Error $\ast$error)
\item 
int \hyperlink{group__highlevel_ga70c1a3132315022223f660449b147ef3}{elektra\+K\+D\+B\+Error\+Warning\+Count} (const Elektra\+Error $\ast$error)
\item 
Elektra\+Error $\ast$ \hyperlink{group__highlevel_ga17540583cef8fbedb1536e5cbb704539}{elektra\+K\+D\+B\+Error\+Get\+Warning} (const Elektra\+Error $\ast$error, int index)
\item 
Key $\ast$ \hyperlink{group__highlevel_ga39e5bc8ed336ccc37a7bcedcfcd65353}{elektra\+K\+D\+B\+Error\+Key} (const Elektra\+Error $\ast$error)
\item 
void \hyperlink{group__highlevel_ga591f7ed4b57a341928bf7bb3d7adb693}{elektra\+Error\+Reset} (Elektra\+Error $\ast$$\ast$error)
\begin{DoxyCompactList}\small\item\em Frees the memory used by the error and sets the referenced error variable to N\+U\+LL. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Elektra error codes. 

\begin{DoxyCopyright}{Copyright}
B\+SD License (see doc/\+L\+I\+C\+E\+N\+S\+E.\+md or \href{http://www.libelektra.org}{\tt http\+://www.\+libelektra.\+org}) 
\end{DoxyCopyright}


\subsection{Function Documentation}
\mbox{\Hypertarget{elektra__error_8c_ac5ad6739160c566b6189f7511b1def98}\label{elektra__error_8c_ac5ad6739160c566b6189f7511b1def98}} 
\index{elektra\+\_\+error.\+c@{elektra\+\_\+error.\+c}!elektra\+Error\+Create@{elektra\+Error\+Create}}
\index{elektra\+Error\+Create@{elektra\+Error\+Create}!elektra\+\_\+error.\+c@{elektra\+\_\+error.\+c}}
\subsubsection{\texorpdfstring{elektra\+Error\+Create()}{elektraErrorCreate()}}
{\footnotesize\ttfamily Elektra\+Error$\ast$ elektra\+Error\+Create (\begin{DoxyParamCaption}\item[{Elektra\+Error\+Code}]{code,  }\item[{const char $\ast$}]{description,  }\item[{\hyperlink{kdbprivate_8h_a12c616a1033bddd43fab10d0f777daad}{Elektra\+Error\+Severity}}]{severity }\end{DoxyParamCaption})}



Creates a new Elektra\+Error using the provided values. 

The returned value will be allocated with \hyperlink{internal_8c_a848ed030434c76176167fac6ab79429c}{elektra\+Calloc()}.


\begin{DoxyParams}{Parameters}
{\em code} & The error code of the error. \\
\hline
{\em description} & The description of the error. \\
\hline
{\em severity} & The severity of the error. Only use E\+L\+E\+K\+T\+R\+A\+\_\+\+E\+R\+R\+O\+R\+\_\+\+S\+E\+V\+E\+R\+I\+T\+Y\+\_\+\+F\+A\+T\+AL, if the error will be raised with \hyperlink{group__highlevel_ga57d87ff6defe4db402b772ab2a0025f9}{elektra\+Fatal\+Error()}. \\
\hline
{\em group} & The group to which this error belongs. \\
\hline
{\em module} & The module from which this error originates. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A newly allocated Elektra\+Error (free with \hyperlink{internal_8c_a7f572149d2e0bfe18023a6ac969f195c}{elektra\+Free()}). 
\end{DoxyReturn}
