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".

We left the "OurException" class empty, because the parent class "Exception" will handle the errors using the "default" behavior
when the exception is raised.


Leave as a comment: