Issue #16714: use 'raise' exceptions, don't 'throw'.
Andrew Svetlov authored
Patch by Serhiy Storchaka.
aa061137