MATLAB Data API Exceptions
matlab::data::CanOnlyUseOneStringIndexException
The CanOnlyUseOneStringIndexException
exception occurs if more
than one string index is provided.
matlab::data::CantAssignArrayToThisArrayException
The CantAssignArrayToThisArrayException
exception occurs if
assigning an array to this array is not supported.
matlab::data::CantIndexIntoEmptyArrayException
The CantIndexIntoEmptyArrayException
exception occurs when
attempting any indexing operation on an empty array.
matlab::data::DuplicateFieldNameInStructArrayException
The DuplicateFieldNameInStructArrayException
exception occurs
if a duplicate field name is encountered in a struct
definition.
matlab::data::FailedToLoadLibMatlabDataArrayException
The FailedToLoadLibMatlabDataArrayException
exception occurs if
necessary MATLAB® Data Array libraries failed to load.
matlab::data::FailedToResolveSymbolException
The FailedToResolveSymbolException
exception occurs if unable
to resolve a required symbol in the MATLAB Data Array libraries.
matlab::data::InvalidArrayIndexException
The InvalidArrayIndexException
exception occurs if the index
provided is not valid for the array being indexed.
matlab::data::InvalidDimensionsInSparseArrayException
The InvalidDimensionsInSparseArrayException
exception occurs if
the caller attempts to create a sparse array with more than two dimensions.
matlab::data::InvalidFieldNameException
The InvalidFieldNameException
exception occurs if field name is
invalid for a struct.
matlab::data::MustSpecifyClassNameException
The MustSpecifyClassNameException
exception occurs if class
name is not specified.
matlab::data::NonAsciiCharInRequestedAsciiOutputException
The NonAsciiCharInRequestedAsciiOutputException
exception
occurs if user attempts to create a CharArray
or a
StringArray
with a std::string
and the
std::string
contains non-ASCII characters.
matlab::data::NonAsciiCharInInputDataException
The NonAsciiCharInInputDataException
exception occurs if user
attempts to create a CharArray
or a
StringArray
with a std::string
and the
std::string
contains non-ASCII characters.
matlab::data::InvalidArrayTypeException
The InvalidArrayTypeException
exception occurs if the type of
rhs
does not match the type of
TypedArray<T>
.
matlab::data::NotEnoughIndicesProvidedException
The NotEnoughIndicesProvidedException
exception occurs if not
enough indices are provided.
matlab::data::StringIndexMustBeLastException
The StringIndexMustBeLastException
exception occurs if a string
index is not the last index.
matlab::data::StringIndexNotValidException
The StringIndexNotValidException
exception occurs if a string
index is not valid for this array.
matlab::data::SystemErrorException
The SystemErrorException
exception occurs if a system error
occurs.
matlab::data::TooManyIndicesProvidedException
The TooManyIndicesProvidedException
exception occurs if too
many indices are provided.
matlab::data::TypeMismatchException
The TypeMismatchException
exception occurs if the element of
the Array does not contain T's.
matlab::data::WrongNumberOfEnumsSuppliedException
The WrongNumberOfEnumsSuppliedException
exception occurs if the
wrong number of enums is provided.
matlab::data::InvalidMemoryLayoutException
The InvalidMemoryLayoutException
exception occurs if you try to
add a row-major array to a column-major buffer or vice versa.
matlab::data::InvalidDimensionsInRowMajorArrayException
The InvalidDimensionsInRowMajorArrayException
exception occurs
for arrays created with MATLAB R2019a and R2019b if a row-major array is not 2-D.
matlab::data::NumberOfElementsExceedsMaximumException
The NumberOfElementsExceedsMaximumException
exception occurs if
the number of elements is greater than size_t
.
matlab::data::ObjectArrayIncompatibleTypesException
The ObjectArrayIncompatibleTypesException
exception occurs if
you try to combine elements of a matlab::data::ObjectArray
into a heterogeneous array.
matlab::data::AccessingObjectNotSupportedException
If the class defining an Object
in a matlab::data::ObjectArray
overrides subsref
or
subsasgn
, then you cannot access the elements of the
ObjectArray
. The
AccessingObjectNotSupportedException
exception occurs when
you try to access these elements.
matlab::data::InvalidNumberOfElementsProvidedException
The InvalidNumberOfElementsProvidedException
exception occurs
if you do not provide the required number of elements to initialize a matlab::data::ObjectArray
.
matlab::data::FeatureNotSupportedException
The FeatureNotSupportedException
exception occurs when
interacting with a version of MATLAB that does not support row-major arrays.