Go to the source code of this file.
Defines | |
#define | MAX_ERR_STR 1023 |
Maximum error string length. | |
#define | DNX_CBCANCEL -1 |
Cancel callback iteration loop. | |
#define | DNX_OK 0 |
Success. | |
#define | DNX_ERR_BASE 500 |
Base all error values here. | |
#define | DNX_ERR_INVALID (DNX_ERR_BASE + 1 ) |
Invalid arguments or parameters. | |
#define | DNX_ERR_CAPACITY (DNX_ERR_BASE + 2 ) |
Out of channel slots or XML buffer space. | |
#define | DNX_ERR_BADURL (DNX_ERR_BASE + 3 ) |
Invalid, malformed URL. | |
#define | DNX_ERR_ALREADY (DNX_ERR_BASE + 4 ) |
Already init or deinit. | |
#define | DNX_ERR_EXIST (DNX_ERR_BASE + 5 ) |
Channel already exists. | |
#define | DNX_ERR_UNSUPPORTED (DNX_ERR_BASE + 6 ) |
Unsupported protocol. | |
#define | DNX_ERR_MEMORY (DNX_ERR_BASE + 7 ) |
Out of memory. | |
#define | DNX_ERR_OPEN (DNX_ERR_BASE + 8 ) |
Channel open error. | |
#define | DNX_ERR_SIZE (DNX_ERR_BASE + 9 ) |
Message size is out of bounds. | |
#define | DNX_ERR_SEND (DNX_ERR_BASE + 10) |
Message transmission failure. | |
#define | DNX_ERR_RECEIVE (DNX_ERR_BASE + 11) |
Message reception failure. | |
#define | DNX_ERR_ADDRESS (DNX_ERR_BASE + 12) |
Invalid communications address. | |
#define | DNX_ERR_NOTFOUND (DNX_ERR_BASE + 13) |
Requested resource was not found. | |
#define | DNX_ERR_SYNTAX (DNX_ERR_BASE + 14) |
Incorrect/invalid XML message. | |
#define | DNX_ERR_THREAD (DNX_ERR_BASE + 15) |
Thread error. | |
#define | DNX_ERR_TIMEOUT (DNX_ERR_BASE + 16) |
Timeout. | |
#define | DNX_ERR_BUSY (DNX_ERR_BASE + 17) |
Resource is busy. | |
#define | DNX_ERR_ACCESS (DNX_ERR_BASE + 18) |
Access denied. | |
Typedefs | |
typedef int | dnxError |
A type abstraction for a DNX error value. | |
Functions | |
dnxError | dnxGetLastError (void) |
Return the last error code stored in the global dnx error variable. | |
void | dnxSetLastError (dnxError eno) |
Set the global dnx error variable to some dnx error value. | |
char * | dnxErrorString (dnxError eno) |
Return an error string that matches a specified dnx error code. |
#define DNX_CBCANCEL -1 |
#define DNX_ERR_ACCESS (DNX_ERR_BASE + 18) |
#define DNX_ERR_ADDRESS (DNX_ERR_BASE + 12) |
#define DNX_ERR_ALREADY (DNX_ERR_BASE + 4 ) |
#define DNX_ERR_BADURL (DNX_ERR_BASE + 3 ) |
#define DNX_ERR_BASE 500 |
#define DNX_ERR_BUSY (DNX_ERR_BASE + 17) |
#define DNX_ERR_CAPACITY (DNX_ERR_BASE + 2 ) |
#define DNX_ERR_EXIST (DNX_ERR_BASE + 5 ) |
#define DNX_ERR_INVALID (DNX_ERR_BASE + 1 ) |
#define DNX_ERR_MEMORY (DNX_ERR_BASE + 7 ) |
#define DNX_ERR_NOTFOUND (DNX_ERR_BASE + 13) |
#define DNX_ERR_OPEN (DNX_ERR_BASE + 8 ) |
#define DNX_ERR_RECEIVE (DNX_ERR_BASE + 11) |
#define DNX_ERR_SEND (DNX_ERR_BASE + 10) |
#define DNX_ERR_SIZE (DNX_ERR_BASE + 9 ) |
#define DNX_ERR_SYNTAX (DNX_ERR_BASE + 14) |
#define DNX_ERR_THREAD (DNX_ERR_BASE + 15) |
#define DNX_ERR_TIMEOUT (DNX_ERR_BASE + 16) |
#define DNX_ERR_UNSUPPORTED (DNX_ERR_BASE + 6 ) |
#define DNX_OK 0 |
#define MAX_ERR_STR 1023 |
typedef int dnxError |
char* dnxErrorString | ( | dnxError | eno | ) |
Return an error string that matches a specified dnx error code.
[in] | eno | - the error code for which a string representation is desired. |
errno
. Definition at line 55 of file dnxError.c.
References DNX_ERR_BASE, and elemcount.
Referenced by dnxAgentServer(), dnxCfgParserParse(), dnxCollector(), dnxCollectorCreate(), dnxDispatcherCreate(), dnxGetNodeRequest(), dnxInitAgent(), dnxPluginInit(), dnxReconfigure(), dnxRegisterNode(), dnxRegistrar(), dnxRegistrarCreate(), dnxSendJobMsg(), dnxServerInit(), dnxTimer(), dnxTimerCreate(), dnxWlmCreate(), dnxWorker(), ehSvcCheck(), initClientComm(), initWorkerComm(), main(), nebmodule_init(), processCommands(), ProcessJobTransferMsg(), and workerCreate().
dnxError dnxGetLastError | ( | void | ) |
Return the last error code stored in the global dnx error variable.
Definition at line 47 of file dnxError.c.
References gLastError.
void dnxSetLastError | ( | dnxError | eno | ) |
Set the global dnx error variable to some dnx error value.
[in] | eno | - the value to be set. |
Definition at line 51 of file dnxError.c.
References gLastError.