private void checkStatus ( MtasSolrStatus status ) throws IOException { if ( ! status . finished ( ) ) { if ( status . error ( ) ) { status . setFinished ( ) ; if ( requestHandler != null ) { requestHandler . finishStatus ( status ) ; } throw new IOException ( status . errorMessage ( ) ) ; } else if ( status . abort ( ) ) { status . setFinished ( ) ; if ( requestHandler != null ) { requestHandler . finishStatus ( status ) ; } throw new IOException ( status . abortMessage ( ) ) ; } } }
Check status .