PluginOverwriteWarning
- exception glotaran.plugin_system.base_registry.PluginOverwriteWarning(*args: Any, old_key: str, old_plugin: object | type[object], new_plugin: object | type[object], plugin_set_func_name: str)[source]
Warning used if a plugin tries to overwrite and existing plugin.
Use old and new plugin and keys to give verbose warning message.
- Parameters:
old_key (str) – Old registry key.
old_plugin (object | type[object]) – Old plugin (‘registry[old_key]’).
new_plugin (object | type[object]) – New Plugin (‘registry[new_key]’).
plugin_set_func_name (str) – Name of the function used to pin a plugin.
*args (Any) – Additional args passed to the super constructor.