added an error class