VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
27
class
VTK_COMMON_EXPORT
vtkErrorCode
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,
42
FileNotFoundError
,
43
CannotOpenFileError
,
44
UnrecognizedFileTypeError
,
45
PrematureEndOfFileError
,
46
FileFormatError
,
47
NoFileNameError
,
48
OutOfDiskSpaceError
,
49
UnknownError
,
50
UserError = 40000
51
};
52
//ETX
53
};
54
55
#endif
/* __vtkErrorCode_h */
56
vtkSystemIncludes.h
vtkErrorCode::ErrorIds
ErrorIds
Definition:
vtkErrorCode.h:39
vtkErrorCode::NoFileNameError
Definition:
vtkErrorCode.h:47
vtkErrorCode::FileNotFoundError
Definition:
vtkErrorCode.h:42
vtkErrorCode
superclass for error codes
Definition:
vtkErrorCode.h:27
vtkErrorCode::UnknownError
Definition:
vtkErrorCode.h:49
VTK_COMMON_EXPORT
#define VTK_COMMON_EXPORT
Definition:
vtkWin32Header.h:269
vtkErrorCode::OutOfDiskSpaceError
Definition:
vtkErrorCode.h:48
vtkErrorCode::UnrecognizedFileTypeError
Definition:
vtkErrorCode.h:44
vtkErrorCode::PrematureEndOfFileError
Definition:
vtkErrorCode.h:45
vtkErrorCode::CannotOpenFileError
Definition:
vtkErrorCode.h:43
vtkErrorCode::FileFormatError
Definition:
vtkErrorCode.h:46
Generated on Thu Oct 24 2019 21:14:24 for VTK by
1.8.6