Error Utilities

artv2.utilities.error_utilities

author:

Jeremy Ernst

description:

This module contains functions for raising errors or warnings, depending on if the tools are being run in batch mode or in testing mode, or neither (normal mode.

There are also classes for displaying widgets showing the error or warning message.

inform_user(message, details)[source]

Shows a widget (QMessageBox) with the given message if the tools are not being run in batch or test mode.

Parameters:
  • message – Generalized message describing the information to relay to the user.
  • details – Detailed information related to the message
raise_error(message)[source]

Shows a widget (QMessageBox) with the error message if the tools are not being run in batch or test mode. Otherwise, it will just raise a normal RuntimeError with the message.

Parameters:message – Detailed message describing the error.
report_issues(issues)[source]

Reports the given dependency issues to the user.

Parameters:issues – List of strings of components who have been affected by an operation.