Main Content

MATLAB Engine API for C++ Exception Classes

ExceptionCause

matlab::engine::Exception

Base class of all C++ Engine exceptions.

matlab::engine::EngineException

There is a MATLAB® run-time error in function or MATLAB fails to start.

matlab::engine::MATLABNotAvailableException

The MATLAB session is not available

matlab::engine::MATLABSyntaxException

There is a syntax error in the MATLAB function.

matlab::engine::MATLABExecutionException

There is a MATLAB run-time error in the MATLAB function or statement.

matlab::engine::CanceledException

Evaluation of the MATLAB function is canceled.

matlab::engine::InterruptedException

Thrown by matlab::engine::FutureResult::get if the evaluation of the MATLAB function or statement is interrupted.

matlab::engine::TypeConversionException

The result of the MATLAB function cannot be converted to the specified type