nicetoolbox.utils.check_and_exception.error_log_and_raise

nicetoolbox.utils.check_and_exception.error_log_and_raise(error, name, message)[source]

This function logs an error message and then raises a specific error with a formatted message.

Parameters:
  • error (Exception) – The type of error to be raised.

  • name (str) – The name of the function or method where the error occurred.

  • message (str) – The detailed error message.

Raises:

error – The specific error type raised with a formatted error message.