I know it depends where you damage it. But suppose it was the actual frame..
Even in an accident? Which is realistically the only time it would fail.You can get them repaired, but I ride specialized so would have the frame replaced free of charge.