protected void _error ( String message ) { if ( config . calculatePosition ) { Position currentPosition = position ( ndx ) ; message = message . concat ( StringPool . SPACE ) . concat ( currentPosition . toString ( ) ) ; } else { message = message . concat ( " [@" ) . concat ( Integer . toString ( ndx ) ) . concat ( StringPool . RIGHT_SQ_BRACKET ) ; } visitor . error ( message ) ; }
Prepares error message and reports it to the visitor .