VTK
9.3.0
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Common
Misc
vtkErrorCode.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
17
#ifndef vtkErrorCode_h
18
#define vtkErrorCode_h
19
#include "vtkCommonMiscModule.h"
// For export macro
20
#include "
vtkSystemIncludes.h
"
21
22
// The superclass that all commands should be subclasses of
23
VTK_ABI_NAMESPACE_BEGIN
24
class
VTKCOMMONMISC_EXPORT
vtkErrorCode
25
{
26
public
:
27
static
const
char
*
GetStringFromErrorCode
(
unsigned
long
error);
28
static
unsigned
long
GetErrorCodeFromString
(
const
char
* error);
29
static
unsigned
long
GetLastSystemError
();
30
31
// all the currently defined error codes
32
// developers can use -- vtkErrorCode::UserError + int to
33
// specify their own errors.
34
// if this list is adjusted, be sure to adjust vtkErrorCodeErrorStrings
35
// in vtkErrorCode.cxx to match.
36
enum
ErrorIds
37
{
38
NoError = 0,
39
FirstVTKErrorCode = 20000,
40
FileNotFoundError
,
41
CannotOpenFileError
,
42
UnrecognizedFileTypeError
,
43
PrematureEndOfFileError
,
44
FileFormatError
,
45
NoFileNameError
,
46
OutOfDiskSpaceError
,
47
UnknownError
,
48
UserError = 40000
49
};
50
};
51
52
VTK_ABI_NAMESPACE_END
53
#endif
/* vtkErrorCode_h */
54
55
// VTK-HeaderTest-Exclude: vtkErrorCode.h
vtkErrorCode
superclass for error codes
Definition
vtkErrorCode.h:25
vtkErrorCode::GetLastSystemError
static unsigned long GetLastSystemError()
vtkErrorCode::GetErrorCodeFromString
static unsigned long GetErrorCodeFromString(const char *error)
vtkErrorCode::ErrorIds
ErrorIds
Definition
vtkErrorCode.h:37
vtkErrorCode::OutOfDiskSpaceError
@ OutOfDiskSpaceError
Definition
vtkErrorCode.h:46
vtkErrorCode::UnknownError
@ UnknownError
Definition
vtkErrorCode.h:47
vtkErrorCode::CannotOpenFileError
@ CannotOpenFileError
Definition
vtkErrorCode.h:41
vtkErrorCode::FileFormatError
@ FileFormatError
Definition
vtkErrorCode.h:44
vtkErrorCode::UnrecognizedFileTypeError
@ UnrecognizedFileTypeError
Definition
vtkErrorCode.h:42
vtkErrorCode::PrematureEndOfFileError
@ PrematureEndOfFileError
Definition
vtkErrorCode.h:43
vtkErrorCode::NoFileNameError
@ NoFileNameError
Definition
vtkErrorCode.h:45
vtkErrorCode::FileNotFoundError
@ FileNotFoundError
Definition
vtkErrorCode.h:40
vtkErrorCode::GetStringFromErrorCode
static const char * GetStringFromErrorCode(unsigned long error)
vtkSystemIncludes.h
Generated on Mon Feb 26 2024 16:15:33 for VTK by
1.11.0