Thread Subject: getReport(..'hyperlinks','off')

Subject: getReport(..'hyperlinks','off')

From: Igor

Date: 11 Mar, 2011 23:22:05

Message: 1 of 1

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
----------------------------------------------------------------------------------------------------

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
getreport Igor 11 Mar, 2011 18:24:06
bug Igor 11 Mar, 2011 18:24:06
rssFeed for this Thread

Contact us at files@mathworks.com