code: def _get_args(self, *args) -> (Exception, str):
          
          ex = None
          msg = None
          for arg in args:
              if isinstance(arg, str):
                  msg = arg
              elif isinstance(arg, Exception):
                  ex = arg
          return ex, msg
docs: Returns exception and message from the provided arguments