VTK-m  2.2
Namespaces | Macros | Enumerations | Functions
ErrorCode.h File Reference
#include <lcl/ErrorCode.h>
#include <vtkm/internal/ExportMacros.h>

Go to the source code of this file.

Namespaces

 vtkm
 Groups connected points that have the same field value.
 

Macros

#define VTKM_RETURN_ON_ERROR(call)
 

Enumerations

enum  vtkm::ErrorCode {
  vtkm::ErrorCode::Success, vtkm::ErrorCode::InvalidShapeId, vtkm::ErrorCode::InvalidNumberOfPoints, vtkm::ErrorCode::InvalidCellMetric,
  vtkm::ErrorCode::WrongShapeIdForTagType, vtkm::ErrorCode::InvalidPointId, vtkm::ErrorCode::InvalidEdgeId, vtkm::ErrorCode::InvalidFaceId,
  vtkm::ErrorCode::SolutionDidNotConverge, vtkm::ErrorCode::MatrixFactorizationFailed, vtkm::ErrorCode::DegenerateCellDetected, vtkm::ErrorCode::MalformedCellDetected,
  vtkm::ErrorCode::OperationOnEmptyCell, vtkm::ErrorCode::CellNotFound, vtkm::ErrorCode::UnknownError
}
 Identifies whether an operation was successful or what type of error it had. More...
 

Functions

const char * vtkm::ErrorString (vtkm::ErrorCode code) noexcept
 Convert a vtkm::ErrorCode into a human-readable string. More...
 

Macro Definition Documentation

◆ VTKM_RETURN_ON_ERROR

#define VTKM_RETURN_ON_ERROR (   call)
Value:
do \
{ \
auto status = (call); \
if (status != ::vtkm::ErrorCode::Success) \
{ \
return status; \
} \
} while (false)
vtkm::ErrorCode::Success
@ Success
A successful operation.