
class PortException(Exception):
    """
    Port exception system from PHP
    It has good messages
    """
    def __init__(self, message: str, code: int = 0, *args, **kwargs):
        super().__init__(self, args, kwargs)
        self.message = message
        self.code = code

    def get_message(self) -> str:
        return self.message

    def get_code(self) -> int:
        return self.code


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass

eb2773a90457a4e2f37d22350e376a24d372fd47
<mask token>


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass

class PortException(Exception):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass

class PortException(Exception):
    <mask token>
    <mask token>

    def get_message(self) ->str:
        return self.message
    <mask token>


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass

class PortException(Exception):
    <mask token>

    def __init__(self, message: str, code: int=0, *args, **kwargs):
        super().__init__(self, args, kwargs)
        self.message = message
        self.code = code

    def get_message(self) ->str:
        return self.message
    <mask token>


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass


class PortException(Exception):
    """
    Port exception system from PHP
    It has good messages
    """
    def __init__(self, message: str, code: int = 0, *args, **kwargs):
        super().__init__(self, args, kwargs)
        self.message = message
        self.code = code

    def get_message(self) -> str:
        return self.message

    def get_code(self) -> int:
        return self.code


class UploadException(PortException):
    """
     * Dead upload exception
    """
    pass


class ContinuityUploadException(UploadException):
    """
     * Dead upload exception - we have old one for continue
    """
    pass
