public int getNumErrors ( ) { int numErrors = 0 ; if ( getBuildData ( ) . getErrorDatabase ( ) != null && getBuildData ( ) . getErrorDatabase ( ) . getErrors ( getBuildData ( ) . getBuildLocale ( ) ) != null ) { for ( final TopicErrorData errorData : getBuildData ( ) . getErrorDatabase ( ) . getErrors ( getBuildData ( ) . getBuildLocale ( ) ) ) { numErrors += errorData . getItemsOfType ( ErrorLevel . ERROR ) . size ( ) ; } } return numErrors ; }
Gets the number of errors that occurred during the last build .