Error Utilities
Code author: Jeremy Ernst
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.
Functions
-
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. |