Class SqlBatchException
Subclass of IgniteException that is thrown when an error occurs during a batch update operation. In addition to the information provided by IgniteException, SqlBatchException 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 the array of update counts corresponds to the order in which these commands were added to the batch.
[Serializable]
[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Ignite exceptions use a special constructor.")]
public sealed class SqlBatchException : SqlException, ISerializable
- Inheritance
-
SqlBatchException
- Implements
- Inherited Members
Constructors
SqlBatchException(Guid, int, IReadOnlyList<long>, string?, Exception?)
Initializes a new instance of the SqlBatchException class.
public SqlBatchException(Guid traceId, int code, IReadOnlyList<long> updateCounters, string? message, Exception? innerException = null)
Parameters
traceIdGuidTrace id.
codeintCode.
updateCountersIReadOnlyList<long>Update counters.
messagestringMessage.
innerExceptionExceptionInner exception.
SqlBatchException(Guid, int, string?, Exception?)
Initializes a new instance of the SqlBatchException class.
public SqlBatchException(Guid traceId, int code, string? message, Exception? innerException = null)
Parameters
traceIdGuidTrace id.
codeintCode.
messagestringMessage.
innerExceptionExceptionInner exception.
Properties
UpdateCounters
Gets the update counters. The array describes the outcome of a batch execution. Elements correspond to the order in which commands were added to the batch. Contains update counts for all commands that were executed successfully before the error occurred.
public IReadOnlyList<long> UpdateCounters { get; }