you can use sys.error("Internal error ...")