How to create Custom Exception
Custom Exception Classes
We can create our exception class by subclassing Exception class.
class SomeCustomException(Exception): pass
We can create our exception class by subclassing Exception class.
class SomeCustomException(Exception): pass