Both classes of Warren Buffet's Berkshire Hathaway Inc. (BRK.A) - Get Report (BRK.B) - Get Report stock reached all-time highs Tuesday even though the company's $9 billion bid to purchase power transmission company Oncor fell through. 

The deal's failure resulted in Standard & Poor's affirming the company's AA credit rating, saying that the company is no longer at risk for a credit downgrade. 

Berkshire had negotiated a $270 million deal breakup fee with Oncor. 

Berkshire couldn't maintain its momentum Wednesday afternoon as class A and B shares declined. 

Don't miss these top stories on TheStreet: