Description
Is your feature request related to a problem? Please describe.
I've had a few cases where there was a problem generating a valid schema from my code. The issue is that these exceptions do not specify which part of the code is wrong.
Describe the solution you'd like
A clear and concise description of what you want to happen.
If no schema can be generated for a particular class/function, specify both in the exception message.
Describe alternatives you've considered
Trace/debug logging might also help.
Additional context
The exception I encountered was com.expediagroup.graphql.generator.exceptions.TypeNotSupportedException
. The root cause for this was that the data class I was returning was implementing an interface that defined a few fields. As soon as I removed the interface (I kept the fields) it was fine. Finding this was a painful process of stashing and applying changes almost line by line because the exception did not specify where in the code it failed.