Bottom Page

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?
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote
#2
Create a new one:

class Skaperen_Exception(Exception):
    pass
Skaperen likes this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to fix 'uncaught exception of type NSException' in Python MonsterPython 0 121 Jul-09-2019, 06:52 AM
Last Post: MonsterPython
  problem using custom exception handling in python srm 3 181 Jul-03-2019, 09:10 PM
Last Post: ichabod801
  'Exception Has occured: UnBoundLocalError' caston 1 170 Jun-12-2019, 02:33 PM
Last Post: perfringo
  an easy way to disable exception handling Skaperen 6 448 Jun-02-2019, 10:38 PM
Last Post: Gribouillis
  name of exception for exit() Skaperen 2 246 May-24-2019, 07:07 PM
Last Post: Skaperen
  exception handling KyawMyo 3 271 May-07-2019, 07:53 AM
Last Post: buran
  Writing device driver to stop electric supply to any I/O port sumandas89 0 150 May-02-2019, 10:22 AM
Last Post: sumandas89
  Stack trace shows different exception type than print micseydel 5 544 Apr-01-2019, 10:24 PM
Last Post: micseydel
  Database operation exception handling LostInCode 1 341 Jan-03-2019, 07:50 PM
Last Post: jeanMichelBain
  pyinstaller generated code gets flagged by NIS kris44dad 3 1,382 Jan-03-2019, 08:41 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)