Pergunta de entrevista da empresa Cognizant

Difference between exception and error?