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 2 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 the 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.

Was this topic helpful?