**Describe the bug** As a Kotlin programmer, I would like to create an Exception that extends both `GraphQLError` and `RuntimeException` ```kotlin data class KotlinGraphqlException(val msg: String, val e: Throwable? = null) : RuntimeException(msg, e), GraphQLError { override fun getErrorType() = ErrorType.ValidationError } ``` This is possible in Java, but not in Kotlin because both GraphQLError and RuntimeException have an inherited `message` property  Work-around: we currently have to define this class in Java. It's the only Java class in our project :/ Request: add a base class for Kotlin users that extends both `GraphQLError` and `RuntimeException` I could hack my way by extending `graphql.schema.CoercingParseLiteralException` that does it, but it's not semantically correct.
Activity
bbakerman commentedon Dec 14, 2019
I don"t see how we can fix this. We wont fix it specifically for Kotlin per se.
jmfayard commentedon Dec 14, 2019
The fix would be to add to the library a class that implements both:
public class SomeException extends GraphQLException implements GraphQLError {}andimarek commentedon Jan 19, 2020
we merged and released a GraphQLErrorException .. see #1743
Do not wrap exceptions twice (#1083)
Do not wrap exceptions twice (ExpediaGroup#1083)
Do not wrap exceptions twice (ExpediaGroup#1083)