22szconfigmanager.py is the abstract class for all implementations of SzConfigManager.
33"""
44
5- # TODO: Determine specific SzErrors, Errors for "Raises:" documentation.
6-
75from abc import ABC , abstractmethod
86
97from .szconfig import SzConfig
1210# Metadata
1311
1412__all__ = ["SzConfigManager" ]
15- __version__ = "4.0.1"
16- __date__ = "2025-08-05"
17- __updated__ = "2025-08-07"
13+ __updated__ = "2025-08-11"
1814
1915# -----------------------------------------------------------------------------
2016# SzConfigManager
@@ -43,7 +39,7 @@ def create_config_from_config_id(self, config_id: int) -> SzConfig:
4339 SzConfig: Represents an in-memory Senzing configuration that can be modified.
4440
4541 Raises:
46- TypeError: Incorrect datatype of input parameter.
42+ SzError
4743
4844 .. collapse:: Example:
4945
@@ -70,7 +66,7 @@ def create_config_from_string(self, config_definition: str) -> SzConfig:
7066 SzConfig: Represents an in-memory Senzing configuration that can be modified.
7167
7268 Raises:
73- TypeError: Incorrect datatype of input parameter.
69+ SzError
7470
7571 .. collapse:: Example:
7672
@@ -98,7 +94,7 @@ def create_config_from_template(self) -> SzConfig:
9894 SzConfig: Represents an in-memory Senzing configuration that can be modified.
9995
10096 Raises:
101- TypeError: Incorrect datatype of input parameter.
97+ SzError
10298
10399 .. collapse:: Example:
104100
@@ -127,7 +123,7 @@ def get_config_registry(self) -> str:
127123 str: A JSON document containing Senzing configurations.
128124
129125 Raises:
130- TypeError: Incorrect datatype of input parameter.
126+ SzError
131127
132128 .. collapse:: Example:
133129
@@ -155,7 +151,7 @@ def get_default_config_id(self) -> int:
155151 int: The current default configuration ID or zero if the default configuration has not been set.
156152
157153 Raises:
158- TypeError: Incorrect datatype of input parameter.
154+ SzError
159155
160156 .. collapse:: Example:
161157
@@ -187,7 +183,7 @@ def register_config(self, config_definition: str, config_comment: str) -> int:
187183 int: A configuration identifier.
188184
189185 Raises:
190- TypeError: Incorrect datatype of input parameter.
186+ SzError
191187
192188 .. collapse:: Example:
193189
@@ -217,7 +213,7 @@ def replace_default_config_id(self, current_default_config_id: int, new_default_
217213 new_default_config_id (int): The configuration identifier to use as the default.
218214
219215 Raises:
220- TypeError: Incorrect datatype of input parameter.
216+ SzError
221217
222218 .. collapse:: Example:
223219
@@ -239,7 +235,7 @@ def set_default_config(self, config_definition: str, config_comment: str) -> int
239235 config_comment (str): free-form string of comments describing the configuration document.
240236
241237 Raises:
242- TypeError: Incorrect datatype of input parameter.
238+ SzError
243239
244240 .. collapse:: Example:
245241
@@ -267,7 +263,7 @@ def set_default_config_id(self, config_id: int) -> None:
267263 config_id (int): The configuration identifier of the Senzing Engine configuration to use as the default.
268264
269265 Raises:
270- TypeError: Incorrect datatype of input parameter.
266+ SzError
271267
272268 .. collapse:: Example:
273269
0 commit comments