/** * Check if these messages are a valid result, throws exception if not. * * @throws ErrorMessagesException in case there is at least one {@link Severity#FATAL} severity message */ public void checkValid() throws ErrorMessagesException { if (hasFatal) { throw new ErrorMessagesException(this); } }
/** * Check if these messages are a valid result, throws exception if not. * * @throws ErrorMessagesException in case there is at least one {@link Severity#FATAL} severity message */ public void checkValid() throws ErrorMessagesException { if (hasFatal) { throw new ErrorMessagesException(this); } }