Error Handling


abort
noData
cancel
errorReturn
statusBarMsg

abort

def abort(self, info):
      # This call will send the info to AlertViz,
      # put up a dialog with the given info, and abort the
      # smart tool or procedure.
      # Example:
      # self.abort("Error processing my tool")
      #

noData

def noData(self, info="Insufficient Data to run Tool"):
      #Raise the NoData exception error

cancel

def cancel(self):
      # Cancels a smart tool without displaying an error message

errorReturn

def errorReturn(self, noDataError, message):

statusBarMsg

def statusBarMsg(self, message, status, category="GFE"):
      # Sends the text message to AlertViz with the
      # given status code: "R" (regular), "S" (significant), or "U" (urgent)
      # Example:
      # self.statusBarMsg("Running Smart Tool", "R")
      #