@Override
  public TSStatus visitNode(final StatementNode node, final Exception context) {
    if (context instanceof AccessDeniedException) {
      return new TSStatus(TSStatusCode.NO_PERMISSION.getStatusCode())
          .setMessage(context.getMessage());
    }
    return new TSStatus(TSStatusCode.INTERNAL_SERVER_ERROR.getStatusCode())
        .setMessage(context.getMessage());
  }
This visitor translated some exceptions to pipe related {@link TSStatus} to help sender classify
them and apply different error handling tactics. Please DO NOT modify the exceptions returned by
the processes that generate the following exceptions in the class.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/visitor/PipeStatementExceptionVisitor.java