Related to custom exception

We create a custom exception by extending the Exception class, is there any method that we need to override?

hey @Mohit2000 ,
There is no such thing that you have to override any function , however if you want to do so , than you surely can .
Most of the time , only __init__ and __str__ are being override.
just do

priint(dir(Exception))

This will provide a list of functions and attributes in Exception Class. Now you can override based on your own purpose.

Hope this helps.