VAPoR  0.1
errorcodes.h
Go to the documentation of this file.
1 //-- errorcodes.h ------------------------------------------------------------
2 //
3 // Copyright (C) 2004
4 // University Corporation for Atmospheric Research
5 // All Rights Reserved
6 //
7 //----------------------------------------------------------------------------
8 //
9 // File: errorcodes.h
10 //
11 // Author: Kenny Gruchalla
12 // National Center for Atmospheric Research
13 // PO 3000, Boulder, Colorado
14 //
15 // Date: August 2006
16 //
17 // Description: VAPoR error codes used for message reporting.
18 //
19 // The high-order bits of the codes are bit masked
20 // providing type information: diagonstic, warning, error,
21 // and fatal.
22 //
23 // For example, if (code & VAPoR::WARNING) then 'code'
24 // is a warning type.
25 //
26 //----------------------------------------------------------------------------
27 
28 namespace VAPoR
29 {
31  {
32  // VDF Errors: 0x1 - 0xFF: Handled specially:
33  // The Vaporgui application will not clear
34  // error codes less than 0xfff, until the
35  // error is later detected in the application.
36  // Any errors discovered in the application
37  // must be set with an error code > 0xfff, or
38  // the error will cause methods
39  // in the VDF library to fail.
42  // Diagnostic Codes 0x1001 - 0x1FFF
43  //Currently, diagnostic codes are not used
44  VAPOR_DIAGNOSTIC = 0x1000,
45 
46 
47 
48  // Warning Codes 0x2001 - 0x2FFF
49  VAPOR_WARNING = 0x2000,
58 
59  // Error Codes 0x4001 - 0x4FFF
60  VAPOR_ERROR = 0x4000,
67  VAPOR_ERROR_DVR = 0x4007,
78 
79  //Flow errors
80  VAPOR_ERROR_FLOW = 0x4100,
85 
86  // Fatal Codes 0x8001 - 0x8FFF
87  VAPOR_FATAL = 0x8000
88  };
89 };
errorcodes
Definition: errorcodes.h:30