- Phase: 6. Advanced OOP & Errors
- Duration: 1 hour
- Create custom exception classes by inheriting from
Exception - Add attributes and methods to custom exceptions
- Build exception hierarchies
- Catch custom exceptions selectively
- Decide when to create custom exceptions
- Inheriting from
Exceptionand its subclasses - Adding attributes (error codes, messages)
- Exception hierarchies for libraries
- Raising and catching custom exceptions
- When custom exceptions improve code clarity
Module 056: Error Handling
Module 058: Reading and Writing Text Files