public static boolean containsCriticalErrors ( Collection < ? extends RoboconfError > errors ) { boolean result = false ; for ( RoboconfError error : errors ) { if ( ( result = error . getErrorCode ( ) . getLevel ( ) == ErrorLevel . SEVERE ) ) break ; } return result ; }
Determines whether a collection of errors contains at least one critical error .