LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
Errors.h File Reference

Definitions of error names and error codes used across LLU. More...

Detailed Description

Definitions of error names and error codes used across LLU.

Author
Rafal Chojna rafal.nosp@m.c@wo.nosp@m.lfram.nosp@m..com
Date
March 31, 2019
#include <string>
+ Include dependency graph for Errors.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 LLU
 Main namespace of LibraryLink Utilities.
 
 LLU::ErrorCode
 Error codes predefined in Library Link.
 
 LLU::ErrorName
 Names of all errors used across LLU.
 

Variables

constexpr int LLU::ErrorCode::VersionError = 7
 same as LIBRARY_VERSION_ERROR More...
 
constexpr int LLU::ErrorCode::FunctionError = 6
 same as LIBRARY_FUNCTION_ERROR More...
 
constexpr int LLU::ErrorCode::MemoryError = 5
 same as LIBRARY_MEMORY_ERROR More...
 
constexpr int LLU::ErrorCode::NumericalError = 4
 same as LIBRARY_NUMERICAL_ERROR More...
 
constexpr int LLU::ErrorCode::DimensionsError = 3
 same as LIBRARY_DIMENSIONS_ERROR More...
 
constexpr int LLU::ErrorCode::RankError = 2
 same as LIBRARY_RANK_ERROR More...
 
constexpr int LLU::ErrorCode::TypeError = 1
 same as LIBRARY_TYPE_ERROR More...
 
constexpr int LLU::ErrorCode::NoError = 0
 same as LIBRARY_NO_ERROR More...
 
const std::string LLU::ErrorName::VersionError
 same as LIBRARY_VERSION_ERROR More...
 
const std::string LLU::ErrorName::FunctionError
 same as LIBRARY_FUNCTION_ERROR More...
 
const std::string LLU::ErrorName::MemoryError
 same as LIBRARY_MEMORY_ERROR More...
 
const std::string LLU::ErrorName::NumericalError
 same as LIBRARY_NUMERICAL_ERROR More...
 
const std::string LLU::ErrorName::DimensionsError
 same as LIBRARY_DIMENSIONS_ERROR More...
 
const std::string LLU::ErrorName::RankError
 same as LIBRARY_RANK_ERROR More...
 
const std::string LLU::ErrorName::TypeError
 same as LIBRARY_TYPE_ERROR More...
 
const std::string LLU::ErrorName::NoError
 same as LIBRARY_NO_ERROR More...
 
const std::string LLU::ErrorName::LibDataError
 WolframLibraryData is not set. More...
 
const std::string LLU::ErrorName::MArgumentIndexError
 wrong argument index More...
 
const std::string LLU::ErrorName::MArgumentNumericArrayError
 error involving NumericArray argument More...
 
const std::string LLU::ErrorName::MArgumentTensorError
 error involving Tensor argument More...
 
const std::string LLU::ErrorName::MArgumentImageError
 error involving Image argument More...
 
const std::string LLU::ErrorName::ErrorManagerThrowIdError
 trying to throw exception with non-existent id More...
 
const std::string LLU::ErrorName::ErrorManagerThrowNameError
 trying to throw exception with non-existent name More...
 
const std::string LLU::ErrorName::ErrorManagerCreateNameError
 trying to register exception with already existing name More...
 
const std::string LLU::ErrorName::NumericArrayNewError
 creating new NumericArray failed More...
 
const std::string LLU::ErrorName::NumericArrayCloneError
 NumericArray cloning failed. More...
 
const std::string LLU::ErrorName::NumericArrayTypeError
 NumericArray type mismatch. More...
 
const std::string LLU::ErrorName::NumericArraySizeError
 wrong assumption about NumericArray size More...
 
const std::string LLU::ErrorName::NumericArrayIndexError
 trying to access non-existing element More...
 
const std::string LLU::ErrorName::NumericArrayConversionError
 conversion from NumericArray of different type failed More...
 
const std::string LLU::ErrorName::TensorNewError
 creating new MTensor failed More...
 
const std::string LLU::ErrorName::TensorCloneError
 MTensor cloning failed. More...
 
const std::string LLU::ErrorName::TensorTypeError
 Tensor type mismatch. More...
 
const std::string LLU::ErrorName::TensorSizeError
 wrong assumption about Tensor size More...
 
const std::string LLU::ErrorName::TensorIndexError
 trying to access non-existing element More...
 
const std::string LLU::ErrorName::SparseArrayCloneError
 could not clone MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayTypeError
 SparseArray type mismatch. More...
 
const std::string LLU::ErrorName::SparseArrayFromPositionsError
 could not create MSparseArray from explicit positions More...
 
const std::string LLU::ErrorName::SparseArrayFromTensorError
 could not create MSparseArray from MTensor More...
 
const std::string LLU::ErrorName::SparseArrayImplicitValueResetError
 could not reset the implicit value of MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayImplicitValueError
 could not read implicit value from MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayExplicitValuesError
 could not read explicit values from MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayRowPointersError
 could not read row pointers from MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayColumnIndicesError
 could not read column indices from MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayExplicitPositionsError
 could not read explicit positions from MSparseArray More...
 
const std::string LLU::ErrorName::SparseArrayToTensorError
 could not dump MSparseArray to MTensor More...
 
const std::string LLU::ErrorName::ImageNewError
 creating new MImage failed More...
 
const std::string LLU::ErrorName::ImageCloneError
 MImage cloning failed. More...
 
const std::string LLU::ErrorName::ImageTypeError
 Image type mismatch. More...
 
const std::string LLU::ErrorName::ImageSizeError
 wrong assumption about Image size More...
 
const std::string LLU::ErrorName::ImageIndexError
 trying to access non-existing element More...
 
const std::string LLU::ErrorName::CreateFromNullError
 attempting to create a generic container from nullptr More...
 
const std::string LLU::ErrorName::MArrayElementIndexError
 attempting to access MArray element at invalid index More...
 
const std::string LLU::ErrorName::MArrayDimensionIndexError
 attempting to access MArray dimension at invalid index More...
 
const std::string LLU::ErrorName::WSNullWSLinkError
 Trying to create WSStream with NULL WSLINK. More...
 
const std::string LLU::ErrorName::WSTestHeadError
 WSTestHead failed (wrong head or number of arguments) More...
 
const std::string LLU::ErrorName::WSPutSymbolError
 WSPutSymbol failed. More...
 
const std::string LLU::ErrorName::WSPutFunctionError
 WSPutFunction failed. More...
 
const std::string LLU::ErrorName::WSTestSymbolError
 WSTestSymbol failed (different symbol on the link than expected) More...
 
const std::string LLU::ErrorName::WSWrongSymbolForBool
 Tried to read something else than "True" or "False" as boolean. More...
 
const std::string LLU::ErrorName::WSGetListError
 Could not get list from WSTP. More...
 
const std::string LLU::ErrorName::WSGetScalarError
 Could not get scalar from WSTP. More...
 
const std::string LLU::ErrorName::WSGetStringError
 Could not get string from WSTP. More...
 
const std::string LLU::ErrorName::WSGetArrayError
 Could not get array from WSTP. More...
 
const std::string LLU::ErrorName::WSPutListError
 Could not send list via WSTP. More...
 
const std::string LLU::ErrorName::WSPutScalarError
 Could not send scalar via WSTP. More...
 
const std::string LLU::ErrorName::WSPutStringError
 Could not send string via WSTP. More...
 
const std::string LLU::ErrorName::WSPutArrayError
 Could not send array via WSTP. More...
 
const std::string LLU::ErrorName::WSGetSymbolError
 WSGetSymbol failed. More...
 
const std::string LLU::ErrorName::WSGetFunctionError
 WSGetFunction failed. More...
 
const std::string LLU::ErrorName::WSPacketHandleError
 One of the packet handling functions failed. More...
 
const std::string LLU::ErrorName::WSFlowControlError
 One of the flow control functions failed. More...
 
const std::string LLU::ErrorName::WSTransferToLoopbackError
 Something went wrong when transferring expressions from loopback link. More...
 
const std::string LLU::ErrorName::WSCreateLoopbackError
 Could not create a new loopback link. More...
 
const std::string LLU::ErrorName::WSLoopbackStackSizeError
 Loopback stack size too small to perform desired action. More...
 
const std::string LLU::ErrorName::DLNullRawNode
 DataStoreNode passed to Node wrapper was null. More...
 
const std::string LLU::ErrorName::DLInvalidNodeType
 DataStoreNode passed to Node wrapper carries data of invalid type. More...
 
const std::string LLU::ErrorName::DLGetNodeDataError
 DataStoreNode_getData failed. More...
 
const std::string LLU::ErrorName::DLSharedDataStore
 Trying to create a Shared DataStore. DataStore can only be passed as Automatic or Manual. More...
 
const std::string LLU::ErrorName::DLPushBackTypeError
 Element to be added to the DataList has incorrect type. More...
 
const std::string LLU::ErrorName::ArgumentCreateNull
 Trying to create PrimitiveWrapper object from nullptr. More...
 
const std::string LLU::ErrorName::ArgumentAddNodeMArgument
 Trying to add DataStore Node of type MArgument (aka MType_Undef) More...
 
const std::string LLU::ErrorName::Aborted
 Computation aborted by the user. More...
 
const std::string LLU::ErrorName::ManagedExprInvalidID
 Given number is not an ID of any existing managed expression. More...
 
const std::string LLU::ErrorName::MLEDynamicTypeError
 Invalid dynamic type requested for a Managed Library Expression. More...
 
const std::string LLU::ErrorName::MLENullInstance
 Missing managed object for a valid ID. More...
 
const std::string LLU::ErrorName::PathNotValidated
 Given file path could not be validated under desired open mode. More...
 
const std::string LLU::ErrorName::InvalidOpenMode
 Specified open mode is invalid. More...
 
const std::string LLU::ErrorName::OpenFileFailed
 Could not open file. More...