Since `result` has been removed from many of these functions, using it in the raise statements creates problems.