gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] action upon signal patient_selected


From: Horst Herb
Subject: Re: [Gnumed-devel] action upon signal patient_selected
Date: Mon, 10 Feb 2003 10:46:45 +1100
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021212

Karsten Hilbert wrote:
Assuming the current_patient objects received a
patient_selected signal and subsequently discovers that that
patient is not in the databse what should it do ?

Set the current_patient to None or stay with the previously
selected patient ?

This situation should throw an earthquaking exception and exit the program gracefully with a concise error message, since theoretically it is impossible to happen (other than in a module testing situation).

If such thing happens, there is a gross instability of the whole system and it would be unsafe to continue using it.

Horst





reply via email to

[Prev in Thread] Current Thread [Next in Thread]