Const-ifies exception throw parameters.