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()
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()
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)