You can redefine the handleException method as shown in the following example: def handleException(self, exception): exceptionType = exception[0] exceptionValue = exception[1] # Do some special error handling here # Post an error dialog # db = self.getCurrentDialog() showAFXErrorDialog(db, str(exceptionValue)) |