Microsoft made a poorly constructed machine, that didn't account for things like proper cooling and has lost billions.
Sony leveraged a system that was poorly designed as a game system to win a format war. The machine has serious design flaws, such as insufficient video memory, a difficult to program for processor, and overpriced components across the board. They lost their ass to the tune of billions.
Nintendo marketed an overclocked gamecube with a gimmick controller to the casual gaming market. They did great in sales initially, only to realize casual gamers don't buy games, and let the console sit and collect dust after the novelty wore off. Making a slight profit off the consoles themselves, and getting healthy sales from in house titles, Nindendo's turning a profit overall, and doesn't seem to care that they could be doing much much better than they are.
They all seem like screw-ups to me.