def __init__(self, message, warning=False):
        """
        Setup error.
        :param message: str reason for the error
        :param warning: boolean is this just a warning
        """
        Exception.__init__(self, message)
        self.message = message
        self.warning = warning
def __init__ ( self , message , warning = False ) : Exception . __init__ ( self , message ) self . message = message self . warning = warning
Setup error.
        :param message: str reason for the error
        :param warning: boolean is this just a warning