public static void ThrowError(LexState ls, string errorMsg) { ls.bSucceed = false; throw new Exception(errorMsg); }