因为你是先捕捉的Exception,然后才捕捉的IOException,然而 Exception是IOException的父类,所以只执行Exception的捕捉,后面的IOException捕捉就不会执行了。
exception会捕捉所有异常,所以后面的catch再进行捕捉