Helper method to get exception type
Helper method to get exception type

Test Plan: Tested with subsequent thrift diff

Reviewed By: davejwatson@fb.com

FB internal diff: D1108428


PPC64/folly,project-zerus/folly,bikong2/folly,cole14/folly,yangjin-unique/folly,renyinew/folly,nickhen/folly,xzmagic/folly,shaobz/folly,constantine001/folly,cole14/folly,Orvid/folly,tempbottle/folly,fw1121/folly,clearlinux/folly,yangjin-unique/folly,cppfool/folly,sonnyhu/folly,hongliangzhao/folly,leolujuyi/folly,bobegir/folly,alexst07/folly,juniway/folly,clearlylin/folly,floxard/folly,juniway/folly,facebook/folly,kernelim/folly,tomhughes/folly,stonegithubs/folly,charsyam/folly,guker/folly,project-zerus/folly,CJstar/folly,hongliangzhao/folly,tomhughes/folly,bobegir/folly,Eagle-X/folly,unmeshvrije/C--,KSreeHarsha/folly,sonnyhu/folly,shaobz/folly,Hincoin/folly,shaobz/folly,clearlinux/folly,yangjin-unique/folly,cppfool/folly,xzmagic/folly,raphaelamorim/folly,charsyam/folly,hongliangzhao/folly,brunomorishita/folly,shaobz/folly,bsampath/folly,reddit/folly,upsoft/folly,chjp2046/folly,gaoyingie/folly,kernelim/folly,Hincoin/folly,xzmagic/folly,chjp2046/folly,project-zerus/folly,renyinew/folly,zhiweicai/folly,unmeshvrije/C--,PoisonBOx/folly,tempbottle/folly,SammyK/folly,bsampath/folly,PoisonBOx/folly,colemancda/folly,romange/folly,SeanRBurton/folly,Hincoin/folly,raphaelamorim/folly,ykarlsbrun/folly,leolujuyi/folly,juniway/folly,CJstar/folly,ykarlsbrun/folly,zhiweicai/folly,PPC64/folly,KSreeHarsha/folly,brunomorishita/folly,upsoft/folly,PoisonBOx/folly,gavioto/folly,ykarlsbrun/folly,bobegir/folly,reddit/folly,SammyK/folly,reddit/folly,clearlylin/folly,bowlofstew/folly,rklabs/folly,guker/folly,nickhen/folly,PPC64/folly,yangjin-unique/folly,gavioto/folly,theiver9827/folly,gavioto/folly,tempbottle/folly,cppfool/folly,loverszhaokai/folly,colemancda/folly,project-zerus/folly,stonegithubs/folly,mqeizi/folly,sakishum/folly,floxard/folly,bobegir/folly,cole14/folly,cppfool/folly,rklabs/folly,nickhen/folly,clearlylin/folly,tomhughes/folly,Orvid/folly,arg0/folly,bikong2/folly,upsoft/folly,nickhen/folly,romange/folly,facebook/folly,renyinew/folly,upsoft/folly,raphaelamorim/folly,charsyam/folly,stonegithubs/folly,SeanRBurton/folly,Eagle-X/folly,cole14/folly,bsampath/folly,zhiweicai/folly,upsoft/folly,lifei/folly,alexst07/folly,brunomorishita/folly,unmeshvrije/C--,lifei/folly,hongliangzhao/folly,SeanRBurton/folly,juniway/folly,arg0/folly,gaoyingie/folly,wildinto/folly,rklabs/folly,fw1121/folly,xzmagic/folly,sonnyhu/folly,tempbottle/folly,doctaweeks/folly,yangjin-unique/folly,guker/folly,Eagle-X/folly,Hincoin/folly,romange/folly,shaobz/folly,raphaelamorim/folly,leolujuyi/folly,zhiweicai/folly,Orvid/folly,bikong2/folly,SammyK/folly,KSreeHarsha/folly,colemancda/folly,gaoyingie/folly,lifei/folly,juniway/folly,sonnyhu/folly,chjp2046/folly,charsyam/folly,wildinto/folly,mqeizi/folly,gavioto/folly,alexst07/folly,constantine001/folly,loversInJapan/folly,raphaelamorim/folly,kernelim/folly,arg0/folly,clearlinux/folly,loversInJapan/folly,PoisonBOx/folly,romange/folly,SammyK/folly,doctaweeks/folly,arg0/folly,mqeizi/folly,loversInJapan/folly,unmeshvrije/C--,nickhen/folly,stonegithubs/folly,renyinew/folly,clearlylin/folly,sakishum/folly,leolujuyi/folly,floxard/folly,romange/folly,doctaweeks/folly,clearlinux/folly,colemancda/folly,bsampath/folly,wildinto/folly,lifei/folly,wildinto/folly,floxard/folly,xzmagic/folly,KSreeHarsha/folly,gavioto/folly,cppfool/folly,doctaweeks/folly,Hincoin/folly,renyinew/folly,Eagle-X/folly,bowlofstew/folly,loverszhaokai/folly,kernelim/folly,Orvid/folly,Orvid/folly,clearlinux/folly,brunomorishita/folly,reddit/folly,chjp2046/folly,project-zerus/folly,sakishum/folly,zhiweicai/folly,loverszhaokai/folly,floxard/folly,constantine001/folly,PPC64/folly,SeanRBurton/folly,reddit/folly,unmeshvrije/C--,guker/folly,constantine001/folly,fw1121/folly,theiver9827/folly,lifei/folly,bobegir/folly,bsampath/folly,loversInJapan/folly,tomhughes/folly,bowlofstew/folly,chjp2046/folly,KSreeHarsha/folly,ykarlsbrun/folly,gaoyingie/folly,theiver9827/folly,fw1121/folly,clearlylin/folly,rklabs/folly,hongliangzhao/folly,gaoyingie/folly,CJstar/folly,SammyK/folly,bikong2/folly,tomhughes/folly,sonnyhu/folly,PPC64/folly,loverszhaokai/folly,stonegithubs/folly,PoisonBOx/folly,facebook/folly,SeanRBurton/folly,cole14/folly,CJstar/folly,alexst07/folly,loversInJapan/folly,sakishum/folly,tempbottle/folly,CJstar/folly,bikong2/folly,leolujuyi/folly,colemancda/folly,bowlofstew/folly,unmeshvrije/C--,Eagle-X/folly,doctaweeks/folly,constantine001/folly,rklabs/folly,alexst07/folly,mqeizi/folly,facebook/folly,sakishum/folly,loverszhaokai/folly,kernelim/folly,wildinto/folly,mqeizi/folly,fw1121/folly,guker/folly,theiver9827/folly,facebook/folly,brunomorishita/folly,arg0/folly,theiver9827/folly,ykarlsbrun/folly,bowlofstew/folly