def METHOD_NAME(msg,code=None):
    if msg == None:
        etype, evalue, etrace = sys.exc_info()
        ename = etype.__name__
        msg = f"{ename} {evalue}"
    elif DEBUG:
        raise Exception(msg)
    elif not QUIET:
        print(f"ERROR [{EXENAME}]: {msg}",file=sys.stderr,flush=True)
    if type(code) != type(None):
        exit(code)