Honoring Asian Pacific American Heritage Month. See how.

sendErrorEvent method

*[<Null safety>](https://dart.dev/null-safety)*

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

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

Implementation

void sendErrorEvent(
    OpenFlags flags, int status, InterfaceRequest<Node> request) {
  if ((flags & OpenFlags.describe) != OpenFlags.$none) {
    final e = ErrorNodeForSendingEvent(status, _removeErrorNode, request);
    _errorNodes.add(e);
  } else {
    request.close();
  }
}