class Main { class FailureException extends Exception {} public static void x(StringTemplate.Processor p, int i, int j) { try { String t = p."\{i} + \{j} = \{i + j}"; } catch (FailureException ignore) {} } }