Change exception handling about which class is passed to pooling_class
Change exception handling about which class is passed to pooling_class

keisuke-umezawa/chainer,truongdq/chainer,muupan/chainer,hvy/chainer,ktnyt/chainer,wkentaro/chainer,wkentaro/chainer,kikusu/chainer,ytoyama/yans_chainer_hackathon,hvy/chainer,AlpacaDB/chainer,AlpacaDB/chainer,keisuke-umezawa/chainer,woodshop/chainer,cupy/cupy,cupy/cupy,ktnyt/chainer,truongdq/chainer,hidenori-t/chainer,okuta/chainer,laysakura/chainer,wkentaro/chainer,sinhrks/chainer,jnishi/chainer,woodshop/complex-chainer,kashif/chainer,okuta/chainer,cupy/cupy,ktnyt/chainer,delta2323/chainer,ktnyt/chainer,jnishi/chainer,umitanuki/chainer,benob/chainer,kiyukuta/chainer,chainer/chainer,t-abe/chainer,niboshi/chainer,Kaisuke5/chainer,anaruse/chainer,chainer/chainer,okuta/chainer,jnishi/chainer,cupy/cupy,niboshi/chainer,minhpqn/chainer,pfnet/chainer,tigerneil/chainer,hvy/chainer,okuta/chainer,kikusu/chainer,ronekko/chainer,keisuke-umezawa/chainer,masia02/chainer,niboshi/chainer,jnishi/chainer,muupan/chainer,wavelets/chainer,t-abe/chainer,sinhrks/chainer,yanweifu/chainer,sou81821/chainer,aonotas/chainer,kuwa32/chainer,rezoo/chainer,cemoody/chainer,benob/chainer,wkentaro/chainer,tscohen/chainer,1986ks/chainer,hvy/chainer,ysekky/chainer,chainer/chainer,niboshi/chainer,keisuke-umezawa/chainer,tkerola/chainer,chainer/chainer,ikasumi/chainer