Call the error class properly