Class ExceptionDefinition
java.lang.Object
no.sikt.graphitron.definitions.objects.AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
no.sikt.graphitron.definitions.objects.ExceptionDefinition
- All Implemented Interfaces:
ObjectSpecification<ObjectField>
public class ExceptionDefinition
extends AbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
Represents the default GraphQL object, parsed as an exception type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ObjectField> createFields(graphql.language.ObjectTypeDefinition objectDefinition) booleanstatic List<ExceptionDefinition> processObjectDefinitions(List<graphql.language.ObjectTypeDefinition> objects) Creates instances of this class for each of theObjectTypeDefinitionprovided.Methods inherited from class no.sikt.graphitron.definitions.objects.AbstractObjectDefinition
equals, getClassReference, getFieldByName, getFields, getGraphClassName, getName, getObjectDefinition, hasField, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.definitions.interfaces.ObjectSpecification
isOperationRoot
-
Constructor Details
-
ExceptionDefinition
public ExceptionDefinition(graphql.language.ObjectTypeDefinition objectDefinition)
-
-
Method Details
-
createFields
- Specified by:
createFieldsin classAbstractObjectDefinition<graphql.language.ObjectTypeDefinition,ObjectField>
-
isGenerated
public boolean isGenerated() -
processObjectDefinitions
public static List<ExceptionDefinition> processObjectDefinitions(List<graphql.language.ObjectTypeDefinition> objects) Creates instances of this class for each of theObjectTypeDefinitionprovided.- Returns:
- List of ObjectDefinitions.
-
getExceptionToErrorMappings
-