Ace_Decoder_Error_Log()
Abstract
Provides a uniform way of reporting errors across all decoders.
Syntax
Ace_Decoder_Error_Log (decoder_name, protocol_name, err_str1, err_str2, fatal)
| Argument | Type | Description |
|---|---|---|
decoder_name |
const char * |
Name of decoder that encountered error. |
protocol_name |
const char * |
Name of protocol being decoded. |
err_str1 |
const char * |
Line 1 of error message. (Must not be null.) |
err_str2 |
const char * |
Line 2 of error message. (Must not be null.) |
fatal |
int |
Error severity. 1 for fatal error, 0 for recoverable error. |
Return Type
void
No return value.
Header
ace_client_api.h
Example
/* There is an error and we could get caught in infinite loop. */
Ace_Decoder_Error_Log ("op_tcp","TCP", "TCP option has length <= 0", "", 0);
FOUT;
Details
This function prints an error message containing the following lines:
Decoder: <decoder_name> Protocol: <protocol_name>
<err_str1>
<err_str2>
For an alternate error format, see Ace_Decoder_Packet_Error_Log().