The generic responses from a command are OK on success, and either (error) or (error cmd status status_desc) on failure. However, many commands will generate responses that are specific to the command, including error messages that are specific to the command and error.
More complex error responses have the following syntax:
(error cmd_name error_code (time) error_text")
where:
The name of the command generating the error.
A signed integer value (see header files for the mapping from the error definitions to the actual error code returned).
The time of the error, expressed as yymmdd@hh:mm:ss.
The detailed description of the error, often including the field particular to the occurrence.
The command interpreter itself will also generate error messages if the command could not be successfully invoked. These include:
(error "cmd_name ST_CMD_SYNTAX_ERROR (time) Command not found") (error "cmd_name ST_CMD_SYNTAX_ERROR (time) Bad parameter count: cmd_description") (error "cmd_name ST_CMD_SYNTAX_ERROR (time) Bad parameter count")
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.