Update error class