Practice ยท 2 of 2
Catch Order Matters
Given the family above, implement classify(fn) that calls fn() and returns 'validation' if it raises ValidationError, 'notfound' if NotFoundError, 'app' for any other AppError, and 'unknown' for anything else.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Exception Hierarchy Drills