Package io.smallrye.graphql.validation
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeanValidationError(jakarta.validation.ConstraintViolation<?> violation, List<graphql.language.NamedNode<?>> requestedPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description graphql.ErrorClassification
getErrorType()
Map<String,Object>
getExtensions()
List<graphql.language.SourceLocation>
getLocations()
String
getMessage()
List<Object>
getPath()
-
-
-
Constructor Detail
-
BeanValidationError
public BeanValidationError(jakarta.validation.ConstraintViolation<?> violation, List<graphql.language.NamedNode<?>> requestedPath)
-
-
Method Detail
-
getErrorType
public graphql.ErrorClassification getErrorType()
- Specified by:
getErrorType
in interfacegraphql.GraphQLError
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfacegraphql.GraphQLError
-
getLocations
public List<graphql.language.SourceLocation> getLocations()
- Specified by:
getLocations
in interfacegraphql.GraphQLError
-
-