Add a class to track common errors and their nice message