Fixes #5444: correct the error classes used
Merge pull request #114 from ncharles/bug_5444/dev/no_error_class

Fixes #5444: correct the error classes used