Question: why error handling is important?
Answer: Error handling is important because it makes it easier for the end users of your code to use it correctly. ... Error handling makes it easier to embed input specifications into the code, so you don't have to look up the design when you write and later maintain the code.