https://se.mathworks.com/help/matlab/ref/matlab.exception.javaexception-class.html
matlab.exception.JavaException - Capture error information for Java exception - MATLAB
Process information from a matlab.exception.JavaException object to handle Java errors thrown by Java methods called from MATLAB.
information formatlabexceptioncaptureerror