Python Custom Exceptions
1) Define & Raise Basic Custom Exception
2) Raise on Negative Input
3) Handle Custom Exception
4) Custom Exception Class With Message
5) Validate Age Input
6) Custom Exception in Function
7) Custom Exception for Even Input
8) Custom Exception in Loop
9) Raise on Empty String
10) File Name Check
11) Custom Exception Hierarchy
12) Dictionary Key Check
13) Value Range Check
14) Raise in Class Method
15) Raise & Pass Message
16) Catch All Custom Errors
17) Safe List Access
18) Validate Non-Numeric Input
19) Custom Exception with Attributes
20) Re-raising Exception
🧩 Concepts Practiced
Focus
What You Learn
📌 Starter Template
Last updated