Elektra error.
More...
#include "types.h"
#include <kdb.h>
#include <stdbool.h>
Elektra error.
- Copyright
- BSD License (see doc/LICENSE.md or http://www.libelektra.org)
◆ elektraErrorConversionFromString()
ElektraError* elektraErrorConversionFromString |
( |
KDBType |
targetType, |
|
|
const char * |
keyname, |
|
|
const char * |
sourceValue |
|
) |
| |
Creates a "Conversion from string failed" error.
- Parameters
-
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. |
- Returns
- A newly allocated ElektraError (free with elektraErrorReset()).
◆ elektraErrorConversionToString()
ElektraError* elektraErrorConversionToString |
( |
KDBType |
sourceType, |
|
|
const char * |
keyname |
|
) |
| |
Creates a "Conversion to string failed" error.
- Parameters
-
sourceType | The type which failed to be converted to string. |
keyname | The name of the key that couldn't be converted. |
- Returns
- A newly allocated ElektraError (free with elektraErrorReset()).