Fix Issue 10420 - Incorrect function attributes in `core.exception`

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