Python 101 : Handling errors - Making your own exceptions -
We create a class that inherits from the "Exception" class.
Our exception class is called "OurException" and it is raised when a value is equal to "3".
when the exception is raised.
We create a class that inherits from the "Exception" class.
Comments