Used wrong exception in 84a66b1454a0efed29701693526c630b82ebb52f.