private static void abortUnless(bool condition, string msg) { if (!condition) { throw new Exception(msg); } }