VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Common
Misc
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
=========================================================================*/
25
#ifndef vtkErrorCode_h
26
#define vtkErrorCode_h
27
#include "
vtkCommonMiscModule.h
"
// For export macro
28
#include "
vtkSystemIncludes.h
"
29
30
// The superclass that all commands should be subclasses of
31
class
VTKCOMMONMISC_EXPORT
vtkErrorCode
32
{
33
public
:
34
static
const
char
*GetStringFromErrorCode(
unsigned
long
event);
35
static
unsigned
long
GetErrorCodeFromString(
const
char
*event);
36
static
unsigned
long
GetLastSystemError();
37
//BTX
38
// all the currently defined error codes
39
// developers can use -- vtkErrorCode::UserError + int to
40
// specify their own errors.
41
// if this list is adjusted, be sure to adjust vtkErrorCodeErrorStrings
42
// in vtkErrorCode.cxx to match.
43
enum
ErrorIds
{
44
NoError = 0,
45
FirstVTKErrorCode = 20000,
46
FileNotFoundError
,
47
CannotOpenFileError
,
48
UnrecognizedFileTypeError
,
49
PrematureEndOfFileError
,
50
FileFormatError
,
51
NoFileNameError
,
52
OutOfDiskSpaceError
,
53
UnknownError
,
54
UserError = 40000
55
};
56
//ETX
57
};
58
59
#endif
/* vtkErrorCode_h */
60
61
// VTK-HeaderTest-Exclude: vtkErrorCode.h
vtkCommonMiscModule.h
vtkSystemIncludes.h
vtkErrorCode::ErrorIds
ErrorIds
Definition:
vtkErrorCode.h:43
vtkErrorCode::NoFileNameError
Definition:
vtkErrorCode.h:51
vtkErrorCode::FileNotFoundError
Definition:
vtkErrorCode.h:46
VTKCOMMONMISC_EXPORT
#define VTKCOMMONMISC_EXPORT
Definition:
vtkCommonMiscModule.h:15
vtkErrorCode
superclass for error codes
Definition:
vtkErrorCode.h:31
vtkErrorCode::UnknownError
Definition:
vtkErrorCode.h:53
vtkErrorCode::OutOfDiskSpaceError
Definition:
vtkErrorCode.h:52
vtkErrorCode::UnrecognizedFileTypeError
Definition:
vtkErrorCode.h:48
vtkErrorCode::PrematureEndOfFileError
Definition:
vtkErrorCode.h:49
vtkErrorCode::CannotOpenFileError
Definition:
vtkErrorCode.h:47
vtkErrorCode::FileFormatError
Definition:
vtkErrorCode.h:50
Generated by
1.8.9.1