Errors are inevitable not only because “the err is human” but also because there is hardly any software developed so perfectly as to eliminate the chance of them. So, errors occur because users make mistakes while engaging with the user interfaces. Or they happen when the app fails. Causes can be different. But the way you mitigate the effects of an error is vital to the user experience.