VTK
9.5.20250922
Main Page
Related Pages
Modules
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
14
#ifndef vtkErrorCode_h
15
#define vtkErrorCode_h
16
#include "vtkCommonMiscModule.h"
// For export macro
17
#include "
vtkSystemIncludes.h
"
18
19
// The superclass that all commands should be subclasses of
20
VTK_ABI_NAMESPACE_BEGIN
21
class
VTKCOMMONMISC_EXPORT
vtkErrorCode
22
{
23
public
:
24
static
const
char
*
GetStringFromErrorCode
(
unsigned
long
error);
25
static
unsigned
long
GetErrorCodeFromString
(
const
char
* error);
26
static
unsigned
long
GetLastSystemError
();
27
28
// all the currently defined error codes
29
// developers can use -- vtkErrorCode::UserError + int to
30
// specify their own errors.
31
// if this list is adjusted, be sure to adjust vtkErrorCodeErrorStrings
32
// in vtkErrorCode.cxx to match.
33
// NOLINTNEXTLINE(readability-enum-initial-value)
34
enum
ErrorIds
35
{
36
NoError = 0,
37
FirstVTKErrorCode = 20000,
38
FileNotFoundError
,
39
CannotOpenFileError
,
40
UnrecognizedFileTypeError
,
41
PrematureEndOfFileError
,
42
FileFormatError
,
43
NoFileNameError
,
44
OutOfDiskSpaceError
,
45
UnknownError
,
46
UserError = 40000
47
};
48
};
49
50
VTK_ABI_NAMESPACE_END
51
#endif
/* vtkErrorCode_h */
52
53
// VTK-HeaderTest-Exclude: vtkErrorCode.h
vtkErrorCode
superclass for error codes
Definition
vtkErrorCode.h:22
vtkErrorCode::GetLastSystemError
static unsigned long GetLastSystemError()
vtkErrorCode::GetErrorCodeFromString
static unsigned long GetErrorCodeFromString(const char *error)
vtkErrorCode::ErrorIds
ErrorIds
Definition
vtkErrorCode.h:35
vtkErrorCode::OutOfDiskSpaceError
@ OutOfDiskSpaceError
Definition
vtkErrorCode.h:44
vtkErrorCode::UnknownError
@ UnknownError
Definition
vtkErrorCode.h:45
vtkErrorCode::CannotOpenFileError
@ CannotOpenFileError
Definition
vtkErrorCode.h:39
vtkErrorCode::FileFormatError
@ FileFormatError
Definition
vtkErrorCode.h:42
vtkErrorCode::UnrecognizedFileTypeError
@ UnrecognizedFileTypeError
Definition
vtkErrorCode.h:40
vtkErrorCode::PrematureEndOfFileError
@ PrematureEndOfFileError
Definition
vtkErrorCode.h:41
vtkErrorCode::NoFileNameError
@ NoFileNameError
Definition
vtkErrorCode.h:43
vtkErrorCode::FileNotFoundError
@ FileNotFoundError
Definition
vtkErrorCode.h:38
vtkErrorCode::GetStringFromErrorCode
static const char * GetStringFromErrorCode(unsigned long error)
vtkSystemIncludes.h
Generated on Mon Sep 22 2025 10:07:51 for VTK by
1.9.7