BulkPartialFailureError class final

Bulk insert split into chunks failed mid-way.

Carries the number of rows committed before the failure and the index of the failed chunk so the caller can decide whether to retry or compensate.

Inheritance

Constructors

BulkPartialFailureError({required int rowsInsertedBeforeFailure, required int failedChunks, required String detail, String? sqlState, int? nativeCode, OdbcErrorDetails details = const OdbcErrorDetails()})
const

Properties

category → ErrorCategory
Returns the error category for decision-making.
no setteroverride
code → OdbcErrorCode
no setterinherited
detail → String
Per-chunk failure details (free-form text from the native side).
final
details → OdbcErrorDetails
finalinherited
failedChunks → int
Number of chunks that failed.
final
hashCode → int
The hash code for this object.
no setterinherited
isConnectionError → bool
Returns true if this is a connection-related error.
no setterinherited
isRetryable → bool
Returns true if the error is transient and may be retried.
no setterinherited
message → String
Human-readable error message describing what went wrong.
finalinherited
nativeCode → int?
Native error code from the database driver.
finalinherited
rowsInsertedBeforeFailure → int
Number of rows successfully committed before the first failure.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlState → String?
SQLSTATE from ODBC error (e.g., '42S02' for table not found).
finalinherited
userMessage → String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
withDetails(OdbcErrorDetails value, {String? message}) → OdbcError
inherited
withSecondary(OdbcError secondary) → OdbcError
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited