private TSStatus visitGeneralActivateTemplate(
      final Statement activateTemplateStatement, final Exception context) {
    if (context instanceof MetadataException || context instanceof StatementAnalyzeException) {
      return new TSStatus(TSStatusCode.PIPE_RECEIVER_USER_CONFLICT_EXCEPTION.getStatusCode())
          .setMessage(context.getMessage());
    } else if (isAutoCreateConflict(context)) {
      return new TSStatus(TSStatusCode.PIPE_RECEIVER_USER_CONFLICT_EXCEPTION.getStatusCode())
          .setMessage(context.getCause().getMessage());
    }
    return visitStatement(activateTemplateStatement, context);
  }
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