public void setErrorMode(@NonNull ErrorMode errorMode) {
        this.errorMode = errorMode;
        errorTextView.setVisibility(errorMode == ErrorMode.WhenInvalid ? INVISIBLE : errorMode == ErrorMode.Always ? VISIBLE : GONE);
    }
public void setErrorMode ( @ NonNull ErrorMode errorMode ) { this . errorMode = errorMode ; errorTextView . setVisibility ( errorMode == ErrorMode . WhenInvalid ? INVISIBLE : errorMode == ErrorMode . Always ? VISIBLE : GONE ) ; }
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