我遇到了以下错误,试图从我的Kotlin代码扩展RuntimeException并实现用Java定义的接口。defined in NegativeCountException
class NegativeCountException() : RuntimeException(), GraphQLError{ }}
其中GraphQLError是一个接口,用Java定义,如下
python石墨烯文档没有提到任何关于graphQL错误的内容。在什么情况下它是有用的,它比简单的raise Exception('Authenication Failure : User is not registered')有什么优势吗?我做了功课,在它的构造函数里找到了这个, def __init__( message, # type: str
nodes=None, # type: Any