捕獲異常類ExcptionHardle里的方法是被哪里調(diào)用的?
public?Result?handle?(Integer?code,?Exception?e)?{ ????return?ResultUtil.error(code,?e.getmessage()); }
請(qǐng)問我在這個(gè)方法里添加了一個(gè)參數(shù)code,他是怎么調(diào)用這個(gè)方法傳值呢?本人springboot新人,請(qǐng)?jiān)斀?,thanks.
public?Result?handle?(Integer?code,?Exception?e)?{ ????return?ResultUtil.error(code,?e.getmessage()); }
請(qǐng)問我在這個(gè)方法里添加了一個(gè)參數(shù)code,他是怎么調(diào)用這個(gè)方法傳值呢?本人springboot新人,請(qǐng)?jiān)斀?,thanks.
2017-08-24
舉報(bào)
2017-08-24
是當(dāng)你你Contorller中throw的時(shí)候