code: public void setErrorMode(@NonNull ErrorMode errorMode) {
          this.errorMode = errorMode;
          errorTextView.setVisibility(errorMode == ErrorMode.WhenInvalid ? INVISIBLE : errorMode == ErrorMode.Always ? VISIBLE : GONE);
      }
docs: Changes error message mode. Nothing will be shown until error text is set. Can be set from
  xml using `carbon_errorMode`.
  
  @param errorMode error message mode