|
I've just noticed folowing tiny bug:
getReport(exception,'hyperlinks','off') still adds some links if exception has '.cause'.
Example:
==================================================
function f1
function fi3()
error('error in fi3');
end
function fi2()
fi3();
end
function fi1()
try
fi2();
catch main_exception
exception1 = MException('M:id1','msg1');
exception1=exception1.addCause(main_exception);
throw(exception1);
end
end
try
fi1
catch exception_
s=getReport(exception_, 'extended', 'hyperlinks', 'off') ;
id=fopen('1.txt','w+');
fprintf(id,'%s',s);
end
end
==================================================
Result:
----------------------------------------------------------------------------------------------------
Error using ==> f1>fi1 at 21
msg1
Error in ==> f1 at 32
fi1
Caused by:
Error using ==> <a href="matlab: opentoline('f:\Igor\Documents\MATLAB\Test_projects\getReport\f1.m',5,0)">f1>fi3 at 5</a>
error in fi3
----------------------------------------------------------------------------------------------------
|