private static String message(String source, int index, String description) { StringBuffer buffer = new StringBuffer('\n'); buffer.append('\n'); buffer.append(source); buffer.append('\n'); for (int i = 0; i < index; i++) { buffer.append(' '); } buffer.append('^'); buffer.append(description); String message = buffer.toString(); throw new FormLayoutParseException(message); }
private static String message(String source, int index, String description) { StringBuffer buffer = new StringBuffer('\n'); buffer.append('\n'); buffer.append(source); buffer.append('\n'); for (int i = 0; i < index; i++) { buffer.append(' '); } buffer.append('^'); buffer.append(description); String message = buffer.toString(); throw new FormLayoutParseException(message); }
public static void fail(String source, int index, String description) { throw new FormLayoutParseException(message(source, index, description)); }
public static void fail(String source, int index, String description) { throw new FormLayoutParseException(message(source, index, description)); }
private void fail(int index, String description) { throw new FormLayoutParseException( message(source, index, description)); }
private void fail(int index, String description) { throw new FormLayoutParseException( message(source, index, description)); }
private void fail(int index, NumberFormatException cause) { throw new FormLayoutParseException( message(source, index, "Invalid multiplier"), cause); }
private void fail(int index, NumberFormatException cause) { throw new FormLayoutParseException( message(source, index, "Invalid multiplier"), cause); }