diff --git a/source/mkw/Patch/PatchOperation/BmgTxtEditor/__init__.py b/source/mkw/Patch/PatchOperation/BmgTxtEditor/__init__.py index 0a1baf6..2d812de 100644 --- a/source/mkw/Patch/PatchOperation/BmgTxtEditor/__init__.py +++ b/source/mkw/Patch/PatchOperation/BmgTxtEditor/__init__.py @@ -8,8 +8,10 @@ if TYPE_CHECKING: from source.mkw.Patch.PatchOperation import Layer from source.mkw.Patch import Patch -Layer: any -Patch: any + +class InvalidBmgLayerMode(Exception): + def __init__(self, layer_mode: str): + super().__init__(f"Error : bmg layer mode \"{layer_mode}\" is not implemented") class AbstractLayer(ABC): diff --git a/source/mkw/Patch/PatchOperation/ImageEditor/__init__.py b/source/mkw/Patch/PatchOperation/ImageEditor/__init__.py index 1c9fabc..76cf584 100644 --- a/source/mkw/Patch/PatchOperation/ImageEditor/__init__.py +++ b/source/mkw/Patch/PatchOperation/ImageEditor/__init__.py @@ -9,8 +9,10 @@ if TYPE_CHECKING: from source.mkw.Patch.PatchOperation import Layer from source.mkw.Patch import Patch -Layer: any -Patch: any + +class InvalidImageLayerType(Exception): + def __init__(self, layer_type: str): + super().__init__(f"Error : image layer type \"{layer_type}\" is not implemented") class AbstractLayer(ABC): diff --git a/source/mkw/Patch/PatchOperation/__init__.py b/source/mkw/Patch/PatchOperation/__init__.py index 9cd02af..a5ab7fe 100644 --- a/source/mkw/Patch/PatchOperation/__init__.py +++ b/source/mkw/Patch/PatchOperation/__init__.py @@ -4,8 +4,10 @@ from typing import IO, Type, TYPE_CHECKING if TYPE_CHECKING: from source.mkw.Patch import Patch -Patch: any -Layer: any + +class InvalidPatchOperation(Exception): + def __init__(self, operation: str): + super().__init__(f"Error : operation \"{operation}\" is not implemented") class AbstractPatchOperation(ABC): diff --git a/source/mkw/Patch/__init__.py b/source/mkw/Patch/__init__.py index ad626ce..380a691 100644 --- a/source/mkw/Patch/__init__.py +++ b/source/mkw/Patch/__init__.py @@ -13,18 +13,3 @@ class PathOutsidePatch(Exception): class InvalidPatchMode(Exception): def __init__(self, mode: str): super().__init__(f"Error : mode \"{mode}\" is not implemented") - - -class InvalidPatchOperation(Exception): - def __init__(self, operation: str): - super().__init__(f"Error : operation \"{operation}\" is not implemented") - - -class InvalidImageLayerType(Exception): - def __init__(self, layer_type: str): - super().__init__(f"Error : image layer type \"{layer_type}\" is not implemented") - - -class InvalidBmgLayerMode(Exception): - def __init__(self, layer_mode: str): - super().__init__(f"Error : bmg layer mode \"{layer_mode}\" is not implemented")