libsyncml
0.5.4
|
Libsyncml's error reporting facilities. More...
![]() |
Functions | |
SmlError ** | smlErrorRef (SmlError **error) |
void | smlErrorDeref (SmlError **error) |
SmlBool | smlErrorIsSet (SmlError **error) |
Checks if the error is set. | |
SmlErrorType | smlErrorGetType (SmlError **error) |
Returns the type of the error. | |
const char * | smlErrorPrint (SmlError **error) |
Returns the message of the error. | |
void | smlErrorUpdate (SmlError **error, const char *format,...) |
Updates the error message. | |
void | smlErrorDuplicate (SmlError **target, SmlError **source) |
Duplicates the error into the target. | |
void | smlErrorSet (SmlError **error, SmlErrorType type, const char *format,...) |
Sets the error. | |
void | smlErrorSetType (SmlError **error, SmlErrorType type) |
Sets the type of an error. | |
SmlErrorClass | smlErrorGetClass (SmlError **error) |
Gets the error class. |
Libsyncml's error reporting facilities.
SmlBool smlErrorIsSet | ( | SmlError ** | error | ) |
Checks if the error is set.
error | A pointer to a error struct to check |
Definition at line 268 of file sml_error.c.
Referenced by smlErrorDuplicate(), smlErrorGetClass(), smlErrorGetType(), smlErrorPrint(), smlErrorSetVargs(), and smlErrorUpdate().
SmlErrorType smlErrorGetType | ( | SmlError ** | error | ) |
Returns the type of the error.
error | The error |
Definition at line 285 of file sml_error.c.
const char* smlErrorPrint | ( | SmlError ** | error | ) |
Returns the message of the error.
error | The error to print |
Definition at line 299 of file sml_error.c.
Referenced by smlAssemblerAddHeader(), smlAssemblerAddStatusFull(), smlAssemblerCheckSize(), smlAssemblerEndCommand(), smlAssemblerGetSpace(), smlAssemblerNew(), smlAssemblerReserveStatus(), smlAssemblerRun(), smlAssemblerStart(), smlAssemblerStartCommand(), smlCommandNewPartialChange(), smlDataSyncAbort(), smlDevInfAgentRequestDevInf(), smlDevInfAgentSendDevInf(), smlDsSessionCloseMap(), smlDsSessionCloseSync(), smlDsSessionSendAlert(), smlDsSessionSendSync(), smlItemGetData(), smlItemStealData(), smlManagerObjectRegister(), smlManagerStop(), smlParserEnd(), smlParserGetCommand(), smlParserGetHeader(), smlParserGetStatus(), smlParserNew(), smlParserStart(), smlSessionEnd(), smlSessionEndCommand(), smlSessionFlush(), smlSessionNew(), smlSessionSendCommand(), smlSessionSendReply(), smlSessionStartCommand(), smlThreadCallFunction(), smlTransportFinalize(), smlTransportFree(), smlTransportInitialize(), smlTransportNew(), smlTransportSetConfigOption(), smlXmlAssemblerNew(), and smlXmlParserStart().
void smlErrorUpdate | ( | SmlError ** | error, |
const char * | format, | ||
... | |||
) |
Updates the error message.
You can use this function to update the error message on a error. You can use the old error->message as a parameter for this function.
error | A pointer to a error struct to update |
format | The new message |
Definition at line 317 of file sml_error.c.
Duplicates the error into the target.
target | The target error to update |
source | The source error which to duplicate |
Definition at line 337 of file sml_error.c.
void smlErrorSet | ( | SmlError ** | error, |
SmlErrorType | type, | ||
const char * | format, | ||
... | |||
) |
Sets the error.
You can use this function to set the error to the given type and message
error | A pointer to a error struct to set |
type | The Error type to set |
format | The message |
Definition at line 355 of file sml_error.c.
Referenced by smlAssemblerAddHeader(), smlAssemblerEndCommand(), smlAssemblerGetSpace(), smlAssemblerNew(), smlAssemblerStartCommand(), smlCommandNewPartialChange(), smlDsSessionCloseSync(), smlDsSessionSendSync(), smlErrorDuplicate(), smlItemGetData(), smlItemStealData(), smlManagerObjectRegister(), smlParserNew(), smlParserStart(), smlThreadCallFunction(), smlTransportFinalize(), smlTransportInitialize(), smlTransportNew(), smlTransportSetConfigOption(), smlTryMalloc0(), smlXmlAssemblerNew(), and smlXmlParserStart().
void smlErrorSetType | ( | SmlError ** | error, |
SmlErrorType | type | ||
) |
Sets the type of an error.
error | A pointer to a error struct to set |
type | The Error type to set |
Definition at line 369 of file sml_error.c.
SmlErrorClass smlErrorGetClass | ( | SmlError ** | error | ) |
Gets the error class.
error | A pointer to a error struct |
Definition at line 382 of file sml_error.c.