question: protected void errorMessage ( String msg ) throws IOException { String str = msg + ", read " + m_Tokenizer . toString ( ) ; if ( m_Lines > 0 ) { int line = Integer . parseInt ( str . replaceAll ( ".* line " , "" ) ) ; str = str . replaceAll ( " line .*" , " line " + ( m_Lines + line - 1 ) ) ; } throw new IOException ( str ) ; }
target:  Throws error message with line number and last token read.