protected void addError ( String errorKey , String errorMessage ) { invalid = true ; controller . setAttr ( errorKey , errorMessage ) ; if ( shortCircuit ) { throw new ValidateException ( ) ; } }
Add message when validate failure .