Class ValidationErrorCollector


  • public class ValidationErrorCollector
    extends java.lang.Object
    • Constructor Detail

      • ValidationErrorCollector

        public ValidationErrorCollector()
      • ValidationErrorCollector

        public ValidationErrorCollector​(int maxErrors)
    • Method Detail

      • addError

        public void addError​(ValidationError validationError)
                      throws graphql.validation.ValidationErrorCollector.MaxValidationErrorsReached
        This will throw ValidationErrorCollector.MaxValidationErrorsReached if too many validation errors are added
        Parameters:
        validationError - the error to add
        Throws:
        graphql.validation.ValidationErrorCollector.MaxValidationErrorsReached - if too many errors have been generated
      • containsValidationError

        public boolean containsValidationError​(ValidationErrorType validationErrorType)
      • containsValidationError

        public boolean containsValidationError​(ValidationErrorType validationErrorType,
                                               java.lang.String description)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object