You have to create your own exception. What class will you use to inherit from?

Questions & AnswersCategory: PythonYou have to create your own exception. What class will you use to inherit from?
Lokesh Kumar Staff asked 2 years ago
1 Answers
Lokesh Kumar Staff answered 2 years ago

a. Exception
 
Explanation:
Exception – all built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class.