Save for two cameras, I've never had an electronic camera fail me. Both of the aforementioned failures were high priced boutique products still within warranty.
The first was a Contax AX. One night it just died. That happened to be the evening before I was supposed to shoot the 60th anniversary meeting of the Nurses of the Pearl Harbor attack. I didn't have a spare body and I had to hand the shoot off to a coworker who wanted it.
The Monday after that, I walked into the shop where I bought it, turned all my Zeiss glass in as well as the AX body and said I wanted a Nikon F3, a few lenses and to cash out the rest. The Contax representative was there (I had called the shop and told them what had happened then they called him) and he practically begged me to stay with the brand. After using Nikons earlier in my Navy career and seeing what abuse they could take, I was done with Contax. Great lenses but that AX was a dog. The RX was awesome though.
The other failure was a Leica M9 which I bought new. Out of the 20 months I owned it, just over 9 of those months it spent getting repaired. After the shutter failed that was the last straw. I had it repaired while still within warranty but couldn't rely upon it so it had to go. Again, I went back to Nikon.
That said, during the last 25 years, I've owned numerous electronic cameras. Models from Nikon L35AFs, F3s, F4s, Canon EOS bodies, Pentax plastic fantastic SLRs, Olympus P&S bodies and a Konica Hexar. None of them have failed me and I'd have no reservations on buying a good condition Contax G2.
Phil Forrest