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
Post a Comment