public void write ( PrintWriter output , Janitor janitor ) { String name = source . getName ( ) ; int line = getCause ( ) . getStartLine ( ) ; int column = getCause ( ) . getStartColumn ( ) ; String sample = source . getSample ( line , column , janitor ) ; output . print ( name + ": " + line + ": " + getCause ( ) . getMessage ( ) ) ; if ( sample != null ) { output . println ( ) ; output . print ( sample ) ; output . println ( ) ; } }
Writes out a nicely formatted summary of the syntax error .