I'm breaking my head around this one: I have a exc...
# codereview
m
I'm breaking my head around this one: I have a exception class like:
Copy code
class 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;)