Use exception rather than error