Correct raise statements to not use new.

Raise conditions that were changed have been corrected and the ones that were still using the old style have been corrected as well.