Viskores  1.0
Namespaces | Macros | Enumerations | Functions
ErrorCode.h File Reference
#include <lcl/ErrorCode.h>
#include <viskores/internal/ExportMacros.h>

Go to the source code of this file.

Namespaces

 viskores
 Groups connected points that have the same field value.
 

Macros

#define VISKORES_RETURN_ON_ERROR(call)
 

Enumerations

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

Functions

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

Macro Definition Documentation

◆ VISKORES_RETURN_ON_ERROR

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