code: def msg(cls, error=None, debug=True, trace=True):
          
          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())
docs: 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: