<filename>transfer-archive/app/connectors/sas_generator/exceptions.py
class StorageSASGeneratorRequestFailed(Exception):
    """
    Exception raised when request to Storage Sas generator service failes for some reason

    Attributes:
        message -- explanation of the error
    """

    def __init__(self, message: str):
        self.message = message
        super().__init__(self.message)


class SASTokenPreconditionFailed(Exception):
    """
    Exception raised when sas generator returns a 412 error, because the container does not exist.

    Attributes:
        container_id -- Object ID for the container
        message -- explanation of the error
    """

    def __init__(self, container_id: str):
        self.container_id = container_id
        self.message = f"Fant ikke container med id={self.container_id} ved generering av SAS token"
        super().__init__(self.message)

<filename>transfer-archive/app/connectors/sas_generator/exceptions.py
class StorageSASGeneratorRequestFailed(Exception):
    """
    Exception raised when request to Storage Sas generator service failes for some reason

    Attributes:
        message -- explanation of the error
    """

    def __init__(self, message: str):
        self.message = message
        super().__init__(self.message)


class SASTokenPreconditionFailed(Exception):
    """
    Exception raised when sas generator returns a 412 error, because the container does not exist.

    Attributes:
        container_id -- Object ID for the container
        message -- explanation of the error
    """

    def __init__(self, container_id: str):
        self.container_id = container_id
        self.message = f"Fant ikke container med id={self.container_id} ved generering av SAS token"
        super().__init__(self.message)

Exception raised when request to Storage Sas generator service failes for some reason      Attributes:         message -- explanation of the error Exception raised when sas generator returns a 412 error, because the container does not exist.      Attributes:         container_id -- Object ID for the container         message -- explanation of the error