Concept Flow - Why custom exceptions are needed
Start Program
Error Occurs?
Throw Exception
Catch Exception
Is it Custom Exception?
Handle Specifically
Handle Generally
Recover or Log
Continue or Exit
The program runs and when an error happens, it throws an exception. If it's a custom exception, it can be handled in a special way, otherwise it is handled generally.