Add missing exception class

[Fixes #571]