not_implemented_to_value_error
- glotaran.plugin_system.io_plugin_utils.not_implemented_to_value_error(func: glotaran.plugin_system.io_plugin_utils.DecoratedFunc) glotaran.plugin_system.io_plugin_utils.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