Python Forum
exception name for a flagged stop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
exception name for a flagged stop
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Create a new one:

class Skaperen_Exception(Exception):
    pass
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyinstaller generated code gets flagged by NIS kris44dad 3 6,303 Jan-03-2019, 08:41 AM
Last Post: buran
  During handling of the above exception, another exception occurred Skaperen 7 26,728 Dec-21-2018, 10:58 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020