VTK  9.3.20240426
Public Types | Static Public Member Functions | List of all members
vtkErrorCode Class Reference

superclass for error codes More...

#include <vtkErrorCode.h>

Public Types

enum  ErrorIds {
  NoError = 0 , FirstVTKErrorCode = 20000 , FileNotFoundError , CannotOpenFileError ,
  UnrecognizedFileTypeError , PrematureEndOfFileError , FileFormatError , NoFileNameError ,
  OutOfDiskSpaceError , UnknownError , UserError = 40000
}
 

Static Public Member Functions

static const char * GetStringFromErrorCode (unsigned long error)
 
static unsigned long GetErrorCodeFromString (const char *error)
 
static unsigned long GetLastSystemError ()
 

Detailed Description

superclass for error codes

vtkErrorCode is an mechanism for (currently) reader object to return errors during reading file.

Tests:
vtkErrorCode (Tests)

Definition at line 21 of file vtkErrorCode.h.

Member Enumeration Documentation

◆ ErrorIds

Enumerator
NoError 
FirstVTKErrorCode 
FileNotFoundError 
CannotOpenFileError 
UnrecognizedFileTypeError 
PrematureEndOfFileError 
FileFormatError 
NoFileNameError 
OutOfDiskSpaceError 
UnknownError 
UserError 

Definition at line 33 of file vtkErrorCode.h.

Member Function Documentation

◆ GetStringFromErrorCode()

static const char * vtkErrorCode::GetStringFromErrorCode ( unsigned long  error)
static

◆ GetErrorCodeFromString()

static unsigned long vtkErrorCode::GetErrorCodeFromString ( const char *  error)
static

◆ GetLastSystemError()

static unsigned long vtkErrorCode::GetLastSystemError ( )
static

The documentation for this class was generated from the following file: