use the correct exception class