not_implemented_to_value_error
- glotaran.plugin_system.io_plugin_utils.not_implemented_to_value_error(func: DecoratedFunc) DecoratedFunc [source]
Decorate a function to raise ValueError instead of NotImplementedError.
This decorator is supposed to be used on functions which call functions that might raise a NotImplementedError, but raise ValueError instead with the same error text.
- Parameters:
func (DecoratedFunc) – Function to be decorated.
- Returns:
Wrapped function.
- Return type:
DecoratedFunc