VAPoR
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
lib
common
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
{
30
enum
errorcodes
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.
40
VAPOR_ERROR_VDF
= 0x1,
41
VAPOR_ERROR_XML
= 0x2,
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,
50
VAPOR_WARNING_GL_SHADER_LOG
= 0x2001,
51
VAPOR_WARNING_FLOW
= 0x2100,
52
VAPOR_WARNING_SEEDS
= 0x2101,
53
VAPOR_WARNING_FLOW_DATA
= 0x2102,
54
VAPOR_WARNING_FLOW_STOP
= 0x2103,
55
VAPOR_WARNING_DATA_UNAVAILABLE
= 0x2004,
56
VAPOR_WARNING_GL_ERROR
= 0x2105,
57
VAPOR_WARNING_TWO_D
= 0x2106,
58
59
// Error Codes 0x4001 - 0x4FFF
60
VAPOR_ERROR
= 0x4000,
61
VAPOR_ERROR_GL_RENDERING
= 0x4001,
62
VAPOR_ERROR_GL_UNKNOWN_UNIFORM
= 0x4002,
63
VAPOR_ERROR_DATA_UNAVAILABLE
= 0x4003,
64
VAPOR_ERROR_DATA_TOO_BIG
= 0x4004,
65
VAPOR_ERROR_DRIVER_FAILURE
= 0x4005,
66
VAPOR_ERROR_GL_VENDOR
= 0x4006,
67
VAPOR_ERROR_DVR
= 0x4007,
68
VAPOR_ERROR_IMAGE_CAPTURE
= 0x4008,
69
VAPOR_ERROR_SPHERICAL
= 0x4009,
70
VAPOR_ERROR_STRETCHED
= 0x4010,
71
VAPOR_ERROR_PARAMS
= 0x4011,
72
VAPOR_ERROR_TWO_D
= 0x4012,
73
VAPOR_ERROR_GEOREFERENCE
= 0x4013,
74
VAPOR_ERROR_SCRIPTING
= 0x4014,
75
VAPOR_ERROR_PARSING
= 0x4015,
76
VAPOR_ERROR_VDC_MERGE
= 0x4016,
77
VAPOR_ERROR_GL_SHADER
= 0x4017,
78
79
//Flow errors
80
VAPOR_ERROR_FLOW
= 0x4100,
81
VAPOR_ERROR_SEEDS
= 0x4101,
82
VAPOR_ERROR_INTEGRATION
= 0x4102,
83
VAPOR_ERROR_FLOW_DATA
= 0x4103,
84
VAPOR_ERROR_FLOW_SAVE
= 0x4104,
85
86
// Fatal Codes 0x8001 - 0x8FFF
87
VAPOR_FATAL
= 0x8000
88
};
89
};
VAPoR::VAPOR_ERROR_GL_RENDERING
Definition:
errorcodes.h:61
VAPoR::VAPOR_ERROR_GL_VENDOR
Definition:
errorcodes.h:66
VAPoR::VAPOR_WARNING_GL_SHADER_LOG
Definition:
errorcodes.h:50
VAPoR::VAPOR_FATAL
Definition:
errorcodes.h:87
VAPoR::VAPOR_ERROR_GL_UNKNOWN_UNIFORM
Definition:
errorcodes.h:62
VAPoR::VAPOR_ERROR_IMAGE_CAPTURE
Definition:
errorcodes.h:68
VAPoR::errorcodes
errorcodes
Definition:
errorcodes.h:30
VAPoR::VAPOR_WARNING_SEEDS
Definition:
errorcodes.h:52
VAPoR::VAPOR_ERROR_GL_SHADER
Definition:
errorcodes.h:77
VAPoR::VAPOR_ERROR_FLOW
Definition:
errorcodes.h:80
VAPoR::VAPOR_ERROR_PARSING
Definition:
errorcodes.h:75
VAPoR::VAPOR_WARNING_DATA_UNAVAILABLE
Definition:
errorcodes.h:55
VAPoR::VAPOR_WARNING_FLOW_STOP
Definition:
errorcodes.h:54
VAPoR::VAPOR_WARNING_TWO_D
Definition:
errorcodes.h:57
VAPoR::VAPOR_ERROR_INTEGRATION
Definition:
errorcodes.h:82
VAPoR::VAPOR_ERROR_FLOW_SAVE
Definition:
errorcodes.h:84
VAPoR::VAPOR_ERROR_VDF
Definition:
errorcodes.h:40
VAPoR::VAPOR_WARNING
Definition:
errorcodes.h:49
VAPoR::VAPOR_ERROR_DRIVER_FAILURE
Definition:
errorcodes.h:65
VAPoR::VAPOR_WARNING_FLOW_DATA
Definition:
errorcodes.h:53
VAPoR::VAPOR_ERROR_FLOW_DATA
Definition:
errorcodes.h:83
VAPoR::VAPOR_WARNING_GL_ERROR
Definition:
errorcodes.h:56
VAPoR::VAPOR_ERROR_SEEDS
Definition:
errorcodes.h:81
VAPoR::VAPOR_ERROR_DVR
Definition:
errorcodes.h:67
VAPoR::VAPOR_ERROR_TWO_D
Definition:
errorcodes.h:72
VAPoR::VAPOR_ERROR
Definition:
errorcodes.h:60
VAPoR::VAPOR_WARNING_FLOW
Definition:
errorcodes.h:51
VAPoR::VAPOR_ERROR_STRETCHED
Definition:
errorcodes.h:70
VAPoR::VAPOR_ERROR_SCRIPTING
Definition:
errorcodes.h:74
VAPoR::VAPOR_ERROR_SPHERICAL
Definition:
errorcodes.h:69
VAPoR
Definition:
errorcodes.h:28
VAPoR::VAPOR_ERROR_PARAMS
Definition:
errorcodes.h:71
VAPoR::VAPOR_ERROR_DATA_TOO_BIG
Definition:
errorcodes.h:64
VAPoR::VAPOR_ERROR_XML
Definition:
errorcodes.h:41
VAPoR::VAPOR_ERROR_VDC_MERGE
Definition:
errorcodes.h:76
VAPoR::VAPOR_ERROR_DATA_UNAVAILABLE
Definition:
errorcodes.h:63
VAPoR::VAPOR_ERROR_GEOREFERENCE
Definition:
errorcodes.h:73
VAPoR::VAPOR_DIAGNOSTIC
Definition:
errorcodes.h:44
Generated by
1.8.10