$darkmode
Elektra 0.11.0
|
Elektra error. More...
#include "types.h"
#include <kdb.h>
#include <stdbool.h>
Functions | |
ElektraError * | elektraErrorPureWarning (void) |
Creates a dummy ElektraError struct to store warnings in. More... | |
const char * | elektraErrorCode (const ElektraError *error) |
const char * | elektraErrorDescription (const ElektraError *error) |
void | elektraErrorReset (ElektraError **error) |
Frees the memory used by the error and sets the referenced error variable to NULL. | |
ElektraError * | elektraErrorConversionToString (KDBType sourceType, const char *keyname) |
Creates a "Conversion to string failed" error. More... | |
ElektraError * | elektraErrorConversionFromString (KDBType targetType, const char *keyname, const char *sourceValue) |
Creates a "Conversion from string failed" error. More... | |
Elektra error.
ElektraError* elektraErrorConversionFromString | ( | KDBType | targetType, |
const char * | keyname, | ||
const char * | sourceValue | ||
) |
Creates a "Conversion from string failed" error.
targetType | The type into which sourceValue couldn't be converted. |
keyname | The name of the key that couldn't be converted. |
sourceValue | The value that couldn't be converted. |
ElektraError* elektraErrorConversionToString | ( | KDBType | sourceType, |
const char * | keyname | ||
) |
Creates a "Conversion to string failed" error.
sourceType | The type which failed to be converted to string. |
keyname | The name of the key that couldn't be converted. |