def toProtocolElement(self):
        error = protocol.GAException()
        error.errorCode = self.getErrorCode()
        error.message = self.getMessage()
        return error
Converts this exception into the GA4GH protocol type so that
dataset/ETHPy150Open ga4gh/server/ga4gh/exceptions.py/RuntimeException.toProtocolElement