See error_code for more details.
DSN_API dsn_error_t dsn_error_register |
( |
const char * |
name | ) |
|
register error code
- Parameters
-
name | error code in string format |
- Returns
- interger value representing this error.
For the same input string, rDSN returns the same interger error code.
DSN_API const char* dsn_error_to_string |
( |
dsn_error_t |
err | ) |
|
translate interger error code to a string
- Parameters
-
- Returns
- string format of the error code
DSN_API dsn_error_t dsn_error_from_string |
( |
const char * |
s, |
|
|
dsn_error_t |
default_err |
|
) |
| |
parse string error code into integer code
- Parameters
-
s | the input error in string format |
default_err | to-be-returned error code if the string is not registered. |
- Returns
- integer format of error code