if you reach base on an error is it an at bat
Error (baseball) An error does not count as a hit but still counts as an at bat for the batter unless, in the scorer's judgment, the batter would have reached first base safely but one or more of the additional base(s) reached was the result of the fielder's mistake. In that case, the play will be scored both as a hit (for the number of bases the fielders should have limited the batter to) and an error. However, if a batter is judged to have reached base solely because of a fielder's mistake, it is scored as a "hit on error," and treated the same as if the batter had been put out, hence lowering his batting average.
No-hitter It is possible to reach base without a hit, most commonly by a walk, error, or being hit by a pitch. (Other possibilities include the batter reaching first after a dropped third strike.) A no-hitter in which no batters reach base at all is a perfect game, a much rarer feat. Because batters can reach base by means other than a hit, a pitcher can throw a no-hitter (though not a perfect game) and still give up runs, and even lose the game, although this is extremely uncommon and most no-hitters are also shutouts. One or more runs were given up in 25 recorded no-hitters in MLB history, most recently by Ervin Santana of the Los Angeles Angels of Anaheim in a 3â€“1 win against the Cleveland Indians on July 27, 2011. On two occasions, a team has thrown a nine-inning no-hitter and still lost the game. On a further four occasions, a team has thrown a no-hitter for eight innings in a losing effort, but those four games are not officially recognized as no-hitters by Major League Baseball because the outing lasted fewer than nine innings. It is theoretically possible for opposing pitchers to throw no-hitters in the same game, although this has never happened in the majors. Two pitchers, Fred Toney and Hippo Vaughn, completed nine innings of a game on May 2, 1917 without either giving up a hit or a run; Vaughn gave up two hits and a run in the 10th inning, losing the game to Toney, who completed the extra-inning no-hitter.