use correct exception type