mpcrl.core.errors.raise_or_warn_on_update_failure#
- mpcrl.core.errors.raise_or_warn_on_update_failure(msg, raises)[source]#
Raises an error or warning with the given message due to an update failure.
- Parameters:
- msgstr
The exception or warning message.
- raisesbool
If
True, raises an exception; otherwise, throws a warning.
- Raises:
- UpdateError
Raises
UpdateErrorifraises=True; otherwise raisesUpdateWarning.
- Return type: