Replace "assertion" with "exception"

You don't throw assertions, assertions throw exceptions.
Merge pull request #1782 from kimroen/patch-1

Replace "assertion" with "exception"