public List < String > getMessages ( ) { List < String > errorMessages = new ArrayList <> ( ) ; for ( ValidationError error : errors ) { errorMessages . add ( error . getMessage ( ) ) ; } return errorMessages ; }
Collects error message string as list from all the errors in the container