Fix Issue 10420.

Mark `core.exception` functions with `pure`, `nothrow`, and friends.
Require user-supplied assert hander to be `nothrow`.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=10420