Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022 #ifndef __vtkErrorCode_h
00023 #define __vtkErrorCode_h
00024 #include "vtkSystemIncludes.h"
00025
00026
00027 class VTK_COMMON_EXPORT vtkErrorCode
00028 {
00029 public:
00030 static const char *GetStringFromErrorCode(unsigned long event);
00031 static unsigned long GetErrorCodeFromString(const char *event);
00032 static unsigned long GetLastSystemError();
00033
00034
00035
00036
00037
00038
00039 enum ErrorIds {
00040 NoError = 0,
00041 FirstVTKErrorCode = 20000,
00042 FileNotFoundError,
00043 CannotOpenFileError,
00044 UnrecognizedFileTypeError,
00045 PrematureEndOfFileError,
00046 FileFormatError,
00047 NoFileNameError,
00048 OutOfDiskSpaceError,
00049 UnknownError,
00050 UserError = 40000
00051 };
00052
00053 };
00054
00055 #endif
00056