From: Jochen V. <vo...@se...> - 2004-11-17 15:34:12
|
Hello Steve, On Wed, Nov 17, 2004 at 11:00:32PM +0800, Steve Chaplin wrote: > I don't think failure to save a file should be a fatal error. > Perhaps PS/SVG print_figure() could raise an exception for the GUI > backend to catch so it can popup an error message and continue. Even now you can probably (not tried) catch the SystemExit exception and prevent the program from aborting. Do you think raising SystemExit like raise SystemExit("error while writing file: permission denied") would be good enough. The GUI frontend could catch SystemExit, check whether the associated value is a string, and then display this string in an error message box. What do you think? Jochen --=20 http://seehuhn.de/ |