Problem Statement
What is a good base class for your application's custom exceptions?
Explanation
Derive custom errors from Exception, not from BaseException. BaseException is reserved for core control flow like SystemExit.
Having a single AppError base lets you catch all app-specific failures in one place when needed.
Code Solution
SolutionRead Only
class AppError(Exception):
pass
class ConfigError(AppError):
pass