I'm trying to define a bunch of custom exceptions in Python for my code, and my first idea has been to create a file called exceptions.py
where I've defined several custom Exceptions. You can see what I've done in the image.
However, as you can see, only the first class is correctly highlighted. Also, when I import this exception, it always raises, no matter if I call it or not. What am I doing wrong? What's the best practice in this case?
Thank you so much for the support.