Call of a jar-file (compiled with matlab), throw complete stack (of matlab errors) back to java
Show older comments
Hallo,
I'm trying to integrate a compiled matlab-programm (as a jar-file) into a java-environment.
1) Is it possible to get a complete stack-trace back to original calling jar-file out of matlab? (Line numbers, functions, ...)
Up to now, it seems that I've to use something like that:
try
catch
msgText = getReport(ME,'extended','hyperlinks','off');
msgText2 = regexprep(msgText,'\s+',' ');
baseException = MException(msgID,msgText2);
throw(baseException);
end
2) Is it possible that the all exceptions are formated in that way, without defining a try-catch-block around the whole function?
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Java Package Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!