Marcel Overdijk
01/11/2018, 6:11 PMclass NotFoundException(
message: String
) : RuntimeException(message), GraphQLError {
override fun getMessage(): String {
return null // would prefer not to implement this method at all
}
override fun getErrorType(): ErrorType {
return ErrorType.DataFetchingException
}
override fun getLocations(): MutableList<SourceLocation>? {
return null
}
}
It complains with the error:
Accidental override: The following declarations have the same JVM signature (getMessage()Ljava/lang/String;)