VTK
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 "vtkSystemIncludes.h"
25 
26 // The superclass that all commands should be subclasses of
28 {
29 public:
30  static const char *GetStringFromErrorCode(unsigned long event);
31  static unsigned long GetErrorCodeFromString(const char *event);
32  static unsigned long GetLastSystemError();
33 //BTX
34  // all the currently defined error codes
35  // developers can use -- vtkErrorCode::UserError + int to
36  // specify their own errors.
37  // if this list is adjusted, be sure to adjust vtkErrorCodeErrorStrings
38  // in vtkErrorCode.cxx to match.
39  enum ErrorIds {
40  NoError = 0,
41  FirstVTKErrorCode = 20000,
50  UserError = 40000
51  };
52 //ETX
53 };
54 
55 #endif /* __vtkErrorCode_h */
56 
superclass for error codes
Definition: vtkErrorCode.h:27
#define VTK_COMMON_EXPORT