def msg(cls, error=None, debug=True, trace=True):
        """
        prints the error message
        :param error: the error message
        :param debug: only prints it if debug is set to true
        :param trace: if true prints the trace
        :return: 
        """
        if debug and error is not None:
            print(error)
        # TODO: BUG: trace should only be printed if debug is true
        if trace:
            print(traceback.format_exc())
prints the error message
        :param error: the error message
        :param debug: only prints it if debug is set to true
        :param trace: if true prints the trace
        :return: