diff --git a/mc_openapi/doml_mc/exceptions.py b/mc_openapi/doml_mc/exceptions.py index b85a24163abcd2ec95e1b0b9afc487de453b4486..1a36fef4232906d76590cb4fc6f9e3954517d906 100644 --- a/mc_openapi/doml_mc/exceptions.py +++ b/mc_openapi/doml_mc/exceptions.py @@ -2,22 +2,22 @@ from mc_openapi.doml_mc.intermediate_model.metamodel import DOMLVersion class BadDOMLException(Exception): - def __init__(self, message: str, *args: object) -> None: + def __init__(self, message: str = None, *args: object) -> None: super().__init__(*args) self.errors = message or "The submitted DOML contains some kind of error." class UnsupportedDOMLVersionException(Exception): - def __init__(self, message: str, *args: object) -> None: + def __init__(self, message: str = None, *args: object) -> None: super().__init__(*args) self.errors = message or "The DOML version is not supported." class MissingInfrastructureLayerException(Exception): - def __init__(self, message: str, *args: object) -> None: + def __init__(self, message: str = None, *args: object) -> None: super().__init__(*args) self.errors = message or "Abstract infrastructure layer is missing from DOML." class NoActiveConcreteLayerException(Exception): - def __init__(self, message: str, *args: object) -> None: + def __init__(self, message: str = None, *args: object) -> None: super().__init__(*args) self.errors = message or "No active concrete infrastructure layer has been specified in DOML."