java - Exception caused by other exception -


in application, seeing logs show

exception1 caused by: exception2 caused by: exception3 

so, if want handle scenario using try-catch, exception should give in catch block? i'am using jdk 1.6, single catch multiple exceptions not solution. using multi-catch blocks last choice.

you should catch exception1, since that's last exception thrown.

first exception3 thrown , caught. catch block caught threw exception2.

then exception2 caught. catch block caught threw exception1.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -