Add comments to the deserialize function within the Error class