code: @NotNull
    public ValidationErrorType getValidationErrorCode() {
      if (code == null) {
        return ValidationErrorType.UNKNOWN;
      } else {
        return ValidationErrorType.toEnum(code);
      }
    }
docs: Gets the validation error type.
  
  @return the validation error type