func (e QueryFailureError) Error() string {
	return fmt.Sprintf("%s: %v", e.Message, e.Response)
}
Error implements the error interface.
package driver
import (
	"bytes"
	"errors"
	"fmt"
	"strings"
	"go.mongodb.org/mongo-driver/bson"
	"go.mongodb.org/mongo-driver/mongo/description"
	"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
)
var (
	retryableCodes          = []int32{11600, 11602, 10107, 13435, 13436, 189, 91, 7, 6, 89, 9001, 262}
	nodeIsRecoveringCodes   = []int32{11600, 11602, 13436, 189, 91}
	notMasterCodes          = []int32{10107, 13435}
	nodeIsShuttingDownCodes = []int32{11600, 91}
	unknownReplWriteConcernCode   = int32(79)
	unsatisfiableWriteConcernCode = int32(100)
)
var (
	UnknownTransactionCommitResult = "UnknownTransactionCommitResult"
	TransientTransactionError = "TransientTransactionError"
	NetworkError = "NetworkError"
	RetryableWriteError = "RetryableWriteError"
	ErrCursorNotFound = errors.New("cursor not found")
	ErrUnacknowledgedWrite = errors.New("unacknowledged write")
	ErrUnsupportedStorageEngine = errors.New("this MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string")
)
type QueryFailureError struct {
	Message  string
	Response bsoncore.Document
	Wrapped  error
}