Atlas-Install/source/mkw/Patch/__init__.py
2022-07-15 16:41:52 +02:00

26 lines
879 B
Python

from pathlib import Path
class PathOutsidePatch(Exception):
def __init__(self, forbidden_path: Path, allowed_range: Path):
super().__init__(f"Error : path {forbidden_path} outside of allowed range {allowed_range}")
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")