copyWith method
OdbcErrorDetails
copyWith(
{ - OdbcErrorCode? code,
- String? operation,
- Object? cause,
- StackTrace? stackTrace,
- String? transactionId,
- String? connectionId,
- int? requestId,
- int? workerId,
- int? attempt,
- bool? outcomeUnknown,
- List<OdbcError>? secondaryErrors,
})
Implementation
OdbcErrorDetails copyWith({
OdbcErrorCode? code,
String? operation,
Object? cause,
StackTrace? stackTrace,
String? transactionId,
String? connectionId,
int? requestId,
int? workerId,
int? attempt,
bool? outcomeUnknown,
List<OdbcError>? secondaryErrors,
}) =>
OdbcErrorDetails(
code: code ?? this.code,
operation: operation ?? this.operation,
cause: cause ?? this.cause,
stackTrace: stackTrace ?? this.stackTrace,
transactionId: transactionId ?? this.transactionId,
connectionId: connectionId ?? this.connectionId,
requestId: requestId ?? this.requestId,
workerId: workerId ?? this.workerId,
attempt: attempt ?? this.attempt,
outcomeUnknown: outcomeUnknown ?? this.outcomeUnknown,
secondaryErrors:
List.unmodifiable(secondaryErrors ?? this.secondaryErrors),
);