Package graphql.validation
Enum ValidationErrorType
- java.lang.Object
-
- java.lang.Enum<ValidationErrorType>
-
- graphql.validation.ValidationErrorType
-
- All Implemented Interfaces:
ValidationErrorClassification
,java.io.Serializable
,java.lang.Comparable<ValidationErrorType>
@PublicApi public enum ValidationErrorType extends java.lang.Enum<ValidationErrorType> implements ValidationErrorClassification
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationErrorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ValidationErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MaxValidationErrorsReached
public static final ValidationErrorType MaxValidationErrorsReached
-
DefaultForNonNullArgument
public static final ValidationErrorType DefaultForNonNullArgument
-
WrongType
public static final ValidationErrorType WrongType
-
UnknownType
public static final ValidationErrorType UnknownType
-
SubselectionRequired
public static final ValidationErrorType SubselectionRequired
-
SubselectionNotAllowed
public static final ValidationErrorType SubselectionNotAllowed
-
InvalidSyntax
public static final ValidationErrorType InvalidSyntax
-
BadValueForDefaultArg
public static final ValidationErrorType BadValueForDefaultArg
-
FieldUndefined
public static final ValidationErrorType FieldUndefined
-
InlineFragmentTypeConditionInvalid
public static final ValidationErrorType InlineFragmentTypeConditionInvalid
-
FragmentTypeConditionInvalid
public static final ValidationErrorType FragmentTypeConditionInvalid
-
UnknownArgument
public static final ValidationErrorType UnknownArgument
-
UndefinedFragment
public static final ValidationErrorType UndefinedFragment
-
NonInputTypeOnVariable
public static final ValidationErrorType NonInputTypeOnVariable
-
UnusedFragment
public static final ValidationErrorType UnusedFragment
-
MissingFieldArgument
public static final ValidationErrorType MissingFieldArgument
-
MissingDirectiveArgument
public static final ValidationErrorType MissingDirectiveArgument
-
VariableTypeMismatch
public static final ValidationErrorType VariableTypeMismatch
-
UnknownDirective
public static final ValidationErrorType UnknownDirective
-
MisplacedDirective
public static final ValidationErrorType MisplacedDirective
-
UndefinedVariable
public static final ValidationErrorType UndefinedVariable
-
VariableNotAllowed
public static final ValidationErrorType VariableNotAllowed
-
UnusedVariable
public static final ValidationErrorType UnusedVariable
-
FragmentCycle
public static final ValidationErrorType FragmentCycle
-
FieldsConflict
public static final ValidationErrorType FieldsConflict
-
InvalidFragmentType
public static final ValidationErrorType InvalidFragmentType
-
LoneAnonymousOperationViolation
public static final ValidationErrorType LoneAnonymousOperationViolation
-
NonExecutableDefinition
public static final ValidationErrorType NonExecutableDefinition
-
DuplicateOperationName
public static final ValidationErrorType DuplicateOperationName
-
DuplicateFragmentName
public static final ValidationErrorType DuplicateFragmentName
-
DuplicateDirectiveName
public static final ValidationErrorType DuplicateDirectiveName
-
DuplicateArgumentNames
public static final ValidationErrorType DuplicateArgumentNames
-
DuplicateIncrementalLabel
public static final ValidationErrorType DuplicateIncrementalLabel
-
DuplicateVariableName
public static final ValidationErrorType DuplicateVariableName
-
NullValueForNonNullArgument
public static final ValidationErrorType NullValueForNonNullArgument
-
SubscriptionMultipleRootFields
public static final ValidationErrorType SubscriptionMultipleRootFields
-
SubscriptionIntrospectionRootField
public static final ValidationErrorType SubscriptionIntrospectionRootField
-
UniqueObjectFieldName
public static final ValidationErrorType UniqueObjectFieldName
-
-
Method Detail
-
values
public static ValidationErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValidationErrorType c : ValidationErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-