Concept Flow - Extending built-in exceptions
Define new Exception class
Inherit from built-in Exception
Add custom __init__ or methods
Raise new Exception
Catch with try-except
Handle or print custom message
You create a new error type by making a class that inherits from a built-in exception, then raise and catch it like normal.