Const-ifies most exception machinery.