update error class