public void setErrors ( final List < Diagnostic > errors ) { if ( errors != null ) { ValidationErrorsModel model = getOrCreateComponentModel ( ) ; for ( Diagnostic error : errors ) { if ( error . getSeverity ( ) == Diagnostic . ERROR ) { model . errors . add ( error ) ; } } } }
Sets the errors for a given user .