Differentiate between expected and unexpected errors