wrong exception throw, should be 'throw' rather than 'error'