Class BeanValidationError

java.lang.Object
io.smallrye.graphql.validation.BeanValidationError
All Implemented Interfaces:
graphql.GraphQLError, Serializable

public class BeanValidationError extends Object implements graphql.GraphQLError
See Also:
  • Constructor Details

    • BeanValidationError

      public BeanValidationError(Set<jakarta.validation.ConstraintViolation<?>> violations, graphql.execution.ResultPath resultPath, List<graphql.language.SourceLocation> sourceLocations)
  • Method Details

    • getErrorType

      public graphql.ErrorClassification getErrorType()
      Specified by:
      getErrorType in interface graphql.GraphQLError
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface graphql.GraphQLError
    • getLocations

      public List<graphql.language.SourceLocation> getLocations()
      Specified by:
      getLocations in interface graphql.GraphQLError
    • getPath

      public List<Object> getPath()
      Specified by:
      getPath in interface graphql.GraphQLError
    • getExtensions

      public Map<String,Object> getExtensions()
      Specified by:
      getExtensions in interface graphql.GraphQLError