equal
deleted
inserted
replaced
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 |