You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/06/09 07:27:05 UTC
[GitHub] [ignite-3] tledkov-gridgain commented on a diff in pull request #843: IGNITE-16963 SQL API: Add batched DML queries support
tledkov-gridgain commented on code in PR #843:
URL: https://github.com/apache/ignite-3/pull/843#discussion_r893161654
##########
modules/api/src/main/java/org/apache/ignite/sql/SqlBatchException.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.sql;
+
+import org.apache.ignite.internal.util.ArrayUtils;
+
+/**
+ * The subclass of {@link SqlException} thrown when an error occurs during a batch update operation. In addition to the
+ * information provided by {@link SqlException}, a <code>SqlBatchException</code> provides the update
+ * counts for all commands that were executed successfully during the batch update, that is,
+ * all commands that were executed before the error occurred. The order of elements in an array of update counts
+ * corresponds to the order in which commands were added to the batch.
+ *
+ */
+public class SqlBatchException extends SqlException {
+ private final long[] updCntrs;
+
+ /**
+ * Creates a new grid exception with the given throwable as a cause and source of error message.
Review Comment:
Removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org