Cleaned up ThrowHelper.

Previous version was outdated code, copied from a tinker project. New
code is commented and more properly named, with a few methods removed
and a few others added.