Use correct exception class definitions.