public static InvalidKBException validationErrors ( List < String > errors ) { StringBuilder message = new StringBuilder ( ) ; message . append ( ErrorMessage . VALIDATION . getMessage ( errors . size ( ) ) ) ; for ( String s : errors ) { message . append ( s ) ; } return create ( message . toString ( ) ) ; }
Thrown on commit when validation errors are found