Update Error class