Configuration File Error Codes
When command errors were found in the configuration file, the exit status of EXIT_ERROR_LOAD_CONF is shown as the result where messages on the detected errors and error code (described below) which shows the kind of reasons are shown on the user interface display.(when on shell applications, standard errors are output ) The error codes are shown by the data range (8bit) from 1 to 255.
This error is shown in the following format.
Format: <config_path>: [<error_code>] <message>
“config_path” shows the path of the configuration file where a error occurred.
“error_code” shows the kind of error code why a error occurred.
“message” shows the error message.
--Example:/etc/hcp/hcp.conf: [052] Configuration file parse error in line 3 : PPubkeyAuthentication yes--
error code | name | description |
---|---|---|
0 | CONF_ERROR_OK | succeeded (usually it is not displayed) |
50 | CONF_ERROR_NULL_NAME | acquiring the configuration name failed |
51 | CONF_ERROR_EMPTY_NAME | the configuration name is vacant |
52 | CONF_ERROR_UKNOWN_NAME | it’s an unknown configuration name |
53 | CONF_ERROR_INVALID_NAME | the configuration name is invalid |
54 | CONF_ERROR_INVALID_VALUE | the value of the configuration name is invalid |
60 | CONF_ERROR_QUOTE_NOT_CLOSED | the quote in the configuration hasn’t closed |
61 | CONF_ERROR_QUOTE_IN_QUOTE | the second quote was found in the quote in the configuration |
70 | CONF_ERROR_NO_VALUES | there wasn’t the onfiguration value |
71 | CONF_ERROR_TOO_MANY_VALUES | the number of the parameters in the configuration is over the limit |
79 | CONF_ERROR_OVER_LIMIT_NUM_OF_VALUES | the configuration value is over the maximum |
80 | CONF_ERROR_UNEXPECTED_NESTED_STRUCT | a nested structured setting was found |
81 | CONF_ERROR_UNEXPECTED_ENDING_STRUCT | an unexpected structured setting end was found |
82 | CONF_ERROR_UNEXPECTED_VALUE_OF_STRUCT | an unexpected structured setting item was found |
84 | CONF_ERROR_ENDING_STRUCT_NOT_FOUND | a structured setting end was not found |
85 | CONF_ERROR_OVER_LIMIT_NUM_OF_STRUCTS | the number of the parameters in a structured setting is over the limit |
99 | CONF_ERROR_LINE_LEN_EXCEEDED | the number of the characters in a line exceeded the limit |
200 | CONF_ERROR_CONF_NOT_FOUND | the configuration file was not found |
201 | CONF_ERROR_FILE_OPEN_FAILED | opening the configuration file failed |
255 | CONF_ERROR_FAILURE | failure |