Main Content

MATLAB Engine API Exceptions

com.mathworks.engine.EngineException

The com.mathworks.engine.EngineException occurs if MATLAB® fails to start, fails to connect, terminates, or disconnects. Use the getMessage method to get a detailed message string returned by this exception.

com.mathworks.engine.UnsupportedTypeException

The com.mathworks.engine.UnsupportedTypeException occurs if you use an unsupported data type in either the input or output of a MATLAB function. Use the getMessage method to get a detailed message string returned by this exception.

com.mathworks.engine.MatlabExecutionException

The com.mathworks.engine.MatlabExecutionException occurs if there is a runtime error in a MATLAB command. This class inherits from java.util.ExecutionException.

com.mathworks.engine.MatlabSyntaxException

The com.mathworks.engine.MatlabSyntaxException occurs if there is a syntax error in a MATLAB command. This class inherits from java.util.ExecutionException.

Related Topics