示例#1
0
 def unitBrowser_onErrorReceived(self, errorCode, errorString):
     if errorCode not in IGNORED_UNIT_BROWSER_ERRORS:
         msgType, msgBody = messages.getUnitBrowserMessage(
             errorCode, errorString)
         SystemMessages.pushMessage(msgBody, type=msgType)
         self.__unsetEntity()
         self.__setDefault()
示例#2
0
 def unitBrowser_onErrorReceived(self, errorCode, errorString):
     """
     Unit browser event listener for request error. Pushes system message and resets current
     entity to default.
     Args:
         errorCode: request error code
         errorString: request error message
     """
     if errorCode not in IGNORED_UNIT_BROWSER_ERRORS:
         msgType, msgBody = messages.getUnitBrowserMessage(
             errorCode, errorString)
         SystemMessages.pushMessage(msgBody, type=msgType)
         self.__setDefault()
示例#3
0
 def unitBrowser_onErrorReceived(self, errorCode, errorString):
     if errorCode not in IGNORED_UNIT_BROWSER_ERRORS:
         msgType, msgBody = messages.getUnitBrowserMessage(errorCode, errorString)
         SystemMessages.pushMessage(msgBody, type=msgType)