Skip to content

Commit 625dafa

Browse files
Shane Myrickdariuszkuc
authored andcommitted
fix: update TypeNotSupportedException message (#236)
Update the exception message to be clear about the situations in which the exception can be thrown. One of the most common questions we get is around trying to use ` Map<>` which is not a valid type for a GraphQL schema.
1 parent 035f6b1 commit 625dafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/expedia/graphql/exceptions/TypeNotSupportedException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import kotlin.reflect.KType
66
* Thrown when the generator does not have a type to map to in GraphQL or in the hooks.
77
*/
88
class TypeNotSupportedException(kType: KType, packageList: List<String>)
9-
: GraphQLKotlinException("Cannot convert $kType since it is outside the supported packages $packageList")
9+
: GraphQLKotlinException("Cannot convert $kType since it is not a valid GraphQL type or outside the supported packages $packageList")

0 commit comments

Comments
 (0)