Handles displaying error messages to the user.
Purpose: Creates a message box given an error message to be
displayed to the user, and makes sure the user
acknowledges this error before continuing.
Used by: Logger, MainWindow, CDF, PDF, File, Graph
Uses: gnome.ui.GnomeMessageBox
Attributes: None
SRS Refs: 3.2.1.1, 4.4
Author: mayadm
Date: 19/7/02
|
Methods
|
|
__init__
|
|
|
__init__
|
__init__ (
self,
error_msg,
parent_widget,
isWarning=0,
)
Purpose: Creates a new instance of the class ErrorHandler,
given an error message and a parent widget which
created the class. Displays an error dialog box,
and closes it once the user has clicked on it to
acknowledge the error. Used by: Logger, MainWindow, CDF, PDF, File, Graph
Uses: gnome.ui.GnomeMessageBox
Input: error_msg : string,
parent_widget : GladeXML,
isWarning : 0 or 1
Output: None
Preconditions: None
Postconditions: None
SRS Refs: 3.2.1.1, 4.4
Author: mayadm
Date: 19/7/02
|
Exceptions
|
|
CustomError, "Error - incorrect input to ErrorHandler: " + str( error_msg ) + " and " + str( parent_widget )
|
|
|