VTK  9.3.0
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
23VTK_ABI_NAMESPACE_BEGIN
24class VTKCOMMONMISC_EXPORT vtkErrorCode
25{
26public:
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.
50};
51
52VTK_ABI_NAMESPACE_END
53#endif /* vtkErrorCode_h */
54
55// VTK-HeaderTest-Exclude: vtkErrorCode.h
superclass for error codes
static unsigned long GetLastSystemError()
static unsigned long GetErrorCodeFromString(const char *error)
@ UnrecognizedFileTypeError
@ PrematureEndOfFileError
static const char * GetStringFromErrorCode(unsigned long error)