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 Details

    • ExceptionDefinition

      public ExceptionDefinition(graphql.language.ObjectTypeDefinition objectDefinition)
  • Method Details

    • createFields

      protected List<ObjectField> createFields(graphql.language.ObjectTypeDefinition objectDefinition)
      Specified by:
      createFields in class AbstractObjectDefinition<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 the ObjectTypeDefinition provided.
      Returns:
      List of ObjectDefinitions.
    • getExceptionToErrorMappings

      public List<ExceptionToErrorMapping> getExceptionToErrorMappings()