add missing new when throw exception