graveyard/tools/org/apache/axis/tools/common/Utils.java
/**
	 * Failed to parse the source code for some reason. This method 
	 * prints out a suitably rude message, and then what? I haven't 
	 * quite decided yet.
	 * 
	 * TODO: Do something sensible here like throw an Exception which
	 * will give up on this file completely and tidy up the output file.
	 * It may be just too dangerous to try to carry on. But we need to 
	 * fail in such a way that the build system knows that we've failed
	 * for this file and can build this file without trace.
	 */
Failed to parse the source code for some reason. This method
prints out a suitably rude message, and then what. I haven't
quite decided yet.

Do something sensible here like throw an Exception which
will give up on this file completely and tidy up the output file.
It may be just too dangerous to try to carry on. But we need to
fail in such a way that the build system knows that we've failed
for this file and can build this file without trace.
Failed to parse the source code for some reason . This method prints out a suitably rude message and then what . I haven ' t quite decided yet . Do something sensible here like throw an Exception which will give up on this file completely and tidy up the output file . It may be just too dangerous to try to carry on . But we need to fail in such a way that the build system knows that we ' ve failed for this file and can build this file without trace .
public static void rude(
		String reason,
		String filename,
		int lineno,
		String codefragment)
		throws ParsingException {
		String text = "Bad C++ code!! ";
		if (reason != null)
			text += reason;
		if (filename != null)
			text += " " + filename + " lineno=" + lineno;
		if (codefragment != null)
			text += " <" + codefragment + ">";
		System.err.println(text);
		throw new ParsingException();
	}
public static void rude ( String reason , String filename , int lineno , String codefragment ) throws ParsingException { String text = "Bad C++ code!! " ; if ( reason != null ) text += reason ; if ( filename != null ) text += " " + filename + " lineno=" + lineno ; if ( codefragment != null ) text += " <" + codefragment + ">" ; System . err . println ( text ) ; throw new ParsingException ( ) ; }
Failed to parse the source code for some reason.
Failed to parse the source code for some reason .