Python Forum
exception name for a flagged stop - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: exception name for a flagged stop (/thread-18768.html)



exception name for a flagged stop - Skaperen - May-31-2019

a few programs i wrote recently run indefinitely or for a very long time. since i don't want to kill them just anywhere, i have coded checks for a stop flag (a file exists). i have now decided that when they do get stopped, i want to know where, so i want to recode them to raise an exception instead of just exiting.

which exception name would be appropriate?


RE: exception name for a flagged stop - heiner55 - May-31-2019

Create a new one:

class Skaperen_Exception(Exception):
    pass