ConfigTreeNode.py
changeset 2640 1b4b335e19ea
parent 2620 063391cd313d
child 2645 d15a997859b1
child 2964 a7b11c9f468e
equal deleted inserted replaced
2639:62b5f7b909a9 2640:1b4b335e19ea
   668                     self.CTNAddChild(pname, ptype)
   668                     self.CTNAddChild(pname, ptype)
   669                 except Exception as exc:
   669                 except Exception as exc:
   670                     msg = _("Could not add child \"{a1}\", type {a2} :\n{a3}\n").format(a1=pname, a2=ptype, a3=text(exc))
   670                     msg = _("Could not add child \"{a1}\", type {a2} :\n{a3}\n").format(a1=pname, a2=ptype, a3=text(exc))
   671                     self.GetCTRoot().logger.write_error(msg)
   671                     self.GetCTRoot().logger.write_error(msg)
   672                     self.GetCTRoot().logger.write_error(traceback.format_exc())
   672                     self.GetCTRoot().logger.write_error(traceback.format_exc())
       
   673 
       
   674 
       
   675     def FatalError(self, message):
       
   676         """ Raise an exception that will trigger error message intended to 
       
   677             the user, but without backtrace since it is not a software error """
       
   678 
       
   679         raise UserAddressedException(message)
       
   680 
       
   681 class UserAddressedException(Exception):
       
   682     pass
       
   683