Fix for incorrect exception syntax.