Exception | Description |
---|---|
ConflictingTypesException |
Thrown when the schema being generated has two classes with the same GraphQLType name,
but they are not the same Kotlin class. We can not have the full package or classpath info
in the GraphQLType so all names must be unique.
|
CouldNotCastToKClassException |
Thrown if could not cast the KType.classifier to KClass
|
CouldNotGetJvmNameOfKTypeException |
Thrown when trying to generate a class and cannot resolve the jvm erasure name.
|
CouldNotGetNameOfAnnotationException |
Thrown when unable to get the annotaiton name of a KAnnotatedElement.
|
CouldNotGetNameOfArgumentException |
Thrown when unable to get the simple name of a function argument
|
CouldNotGetNameOfEnumException |
Thrown when trying to generate an enum class and cannot resolve the simple name.
|
GraphQLKotlinException |
Base exception that all our library exceptions extend from.
|
InvalidIdTypeException |
Throws when the KClass is not one of the supported types for a GraphQLID
|
InvalidInputFieldTypeException |
GraphQL Interfaces and Unions cannot be used as arguments.
Specification reference: https://facebook.github.io/graphql/draft/#sec-Field-Arguments
|
InvalidListTypeException |
Thrown on mapping an invalid list type
|
InvalidSchemaException |
Exception thrown on schema creation if no queries and no mutations are specified.
|
NestingNonNullTypeException |
Throws on nesting a non-null graphql type twice.
|
TypeNotSupportedException |
Thrown when the generator does not have a type to map to in GraphQL or in the hooks.
|