Moreover, is it necessary to raise the exception? If yes, why?