versadac  1
versadac - Scalable Recorder Firmware
ENUM_UhhMsg_Err.h
1 
2 /*
3 Enumerations for Uhh Message Interface
4 $Id: ENUM_UhhMsg_Err.h 4938 2006-10-10 14:20:18Z martinto $
5 */
6 
7 #ifndef __ENUM_UHHMSG_ERR_H
8 #define __ENUM_UHHMSG_ERR_H
9 
10 /* Response error types */
11 
12 enum ENUM_UhhMsg_Err
13 {
14  /* Generic errors */
15  ENUM_UhhMsg_Err_OK = 0, /* No error ****NB THIS MUST BE ZERO**** */
16  ENUM_UhhMsg_Err_Other, /* Non-specific error */
17  ENUM_UhhMsg_Err_Version, /* Host/target version incompatibility */
18  ENUM_UhhMsg_Err_Unsupported, /* E.g. due to invalid category/type */
19  ENUM_UhhMsg_Err_Unavailable, /* E.g. due to uninitialised sub-system */
20  ENUM_UhhMsg_Err_Disconn, /* E.g. socket has become disconnected */
21  ENUM_UhhMsg_Err_BufSize, /* Response buffer too small */
22  ENUM_UhhMsg_Err_BufSizeR, /* Ditto, recoverable using 'retry' */
23  ENUM_UhhMsg_Err_Resources, /* E.g. due to memory allocation failure */
24 
25  /* Category-specific errors */
26  ENUM_UhhMsg_Err_Specific = 16, /* Start of specific errors*/
27 
28  /* Errors from a navigator (translate to java navigator exceptions) */
29  ENUM_UhhMsg_Err_N_NoData = ENUM_UhhMsg_Err_Specific,
30  /* No data at all in history */
31  ENUM_UhhMsg_Err_N_Past, /* Time is earlier than available history */
32  ENUM_UhhMsg_Err_N_Future, /* Time is later than available history */
33  ENUM_UhhMsg_Err_N_Format /* File format error interrupted navigation */
34 };
35 
36 #endif /* __ENUM_UHHMSG_ERR_H */