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