Google is committed to advancing racial equity for Black communities. See how.

sendErrorEvent method

void sendErrorEvent (int flags, int status, InterfaceRequest request)

Create a error node to send onOpen event with failure status.

Implementation

void sendErrorEvent(int flags, int status, InterfaceRequest<Node> request) {
  if ((flags & openFlagDescribe) != 0) {
    var e = ErrorNodeForSendingEvent(status, _removeErrorNode, request);
    _errorNodes.add(e);
  } else {
    request.close();
  }
}