VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkErrorCode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkErrorCode.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef __vtkErrorCode_h
23 #define __vtkErrorCode_h
24 #include "vtkCommonMiscModule.h" // For export macro
25 #include "vtkSystemIncludes.h"
26 
27 // The superclass that all commands should be subclasses of
29 {
30 public:
31  static const char *GetStringFromErrorCode(unsigned long event);
32  static unsigned long GetErrorCodeFromString(const char *event);
33  static unsigned long GetLastSystemError();
34 //BTX
35  // all the currently defined error codes
36  // developers can use -- vtkErrorCode::UserError + int to
37  // specify their own errors.
38  // if this list is adjusted, be sure to adjust vtkErrorCodeErrorStrings
39  // in vtkErrorCode.cxx to match.
40  enum ErrorIds {
41  NoError = 0,
42  FirstVTKErrorCode = 20000,
51  UserError = 40000
52  };
53 //ETX
54 };
55 
56 #endif /* __vtkErrorCode_h */
57 
58 // VTK-HeaderTest-Exclude: vtkErrorCode.h
#define VTKCOMMONMISC_EXPORT
superclass for error codes
Definition: vtkErrorCode.h:28
struct _cl_event * event
Definition: vtkgl.h:14387