src/main/resources/META-INF/resources/webjars/bundle.js
/**
         *
         * @param {string} msg
         * The message to add in the validation context
         * @param {ValidityState} state
         * The ValidityState returned
         * @param {api.ValidationException} e
         * The validation exception to add to error context
         * @return {api.ValidationException} The current instance of the {@link ValidationException}
         */
@param {string} msg
The message to add in the validation context
@param {ValidityState} state
The ValidityState returned
@param {api.ValidationException} e
The validation exception to add to error context
@return {api.ValidationException} The current instance of the  ValidationException
@param { string } msg The message to add in the validation context @param { ValidityState } state The ValidityState returned @param { api . ValidationException } e The validation exception to add to error context @return { api . ValidationException } The current instance of the ValidationException
static addError(msg, state, e) {
            if (!state.valid) {
                if (state.badInput) {
                    api.ValidationException.addError(msg, api.ValidationException.badInput, e);
                }
                else if (state.customError) {
                    api.ValidationException.addError(msg, api.ValidationException.customError, e);
                }
                else if (state.patternMismatch) {
                    api.ValidationException.addError(msg, api.ValidationException.patternMismatch, e);
                }
                else if (state.rangeOverflow) {
                    api.ValidationException.addError(msg, api.ValidationException.rangeOverflow, e);
                }
                else if (state.rangeUnderflow) {
                    api.ValidationException.addError(msg, api.ValidationException.rangeUnderflow, e);
                }
                else if (state.stepMismatch) {
                    api.ValidationException.addError(msg, api.ValidationException.stepMismatch, e);
                }
                else if (state.tooLong) {
                    api.ValidationException.addError(msg, api.ValidationException.tooLong, e);
                }
                else if (state.typeMismatch) {
                    api.ValidationException.addError(msg, api.ValidationException.typeMismatch, e);
                }
                else if (state.valueMissing) {
                    api.ValidationException.addError(msg, api.ValidationException.valueMissing, e);
                }
            }
            return e;
        }
static addError ( msg , state , e ) { if ( ! state . valid ) { if ( state . badInput ) { api . ValidationException . addError ( msg , api . ValidationException . badInput , e ) ; } else if ( state . customError ) { api . ValidationException . addError ( msg , api . ValidationException . customError , e ) ; } else if ( state . patternMismatch ) { api . ValidationException . addError ( msg , api . ValidationException . patternMismatch , e ) ; } else if ( state . rangeOverflow ) { api . ValidationException . addError ( msg , api . ValidationException . rangeOverflow , e ) ; } else if ( state . rangeUnderflow ) { api . ValidationException . addError ( msg , api . ValidationException . rangeUnderflow , e ) ; } else if ( state . stepMismatch ) { api . ValidationException . addError ( msg , api . ValidationException . stepMismatch , e ) ; } else if ( state . tooLong ) { api . ValidationException . addError ( msg , api . ValidationException . tooLong , e ) ; } else if ( state . typeMismatch ) { api . ValidationException . addError ( msg , api . ValidationException . typeMismatch , e ) ; } else if ( state . valueMissing ) { api . ValidationException . addError ( msg , api . ValidationException . valueMissing , e ) ; } } return e ; }
@param {string} msg
 The message to add in the validation context
 @param {ValidityState} state
 The ValidityState returned
 @param {api.ValidationException} e
 The validation exception to add to error context
 @return {api.ValidationException} The current instance of the {@link ValidationException}
@param { string } msg The message to add in the validation context @param { ValidityState } state The ValidityState returned @param { api . ValidationException } e The validation exception to add to error context @return { api . ValidationException } The current instance of the { @link ValidationException }