Renamed class Error to result