package
0.1.1
Repository: https://github.com/zaporter/go-update-mongo.git
Documentation: pkg.go.dev

# Functions

NewCommandError creates a new wire protocol error.
NewCommandErrorMsg is variant for NewCommandError with error string.
NewCommandErrorMsgWithArgument creates a new wire protocol error with an argument that caused the error.
NewWriteErrorMsg creates a new protocol write error with given ErrorCode and message.
ProtocolError converts any error to wire protocol error.

# Constants

Location40181.
Location31325.
Location31324.
AuthenticationFailed.
Location51246.
Location51108.
BadValue.
CannotCreateIndex.
ClientMetadataCannotBeMutated.
Location40602.
CommandNotFound.
ConflictingUpdateOperators.
CursorNotFound.
DocumentValidationFailure.
DollarPrefixedFieldName.
Location4822819.
Location11000.
Location51247.
Location40352.
EmptyFieldName.
Location51272.
Location51270.
Location31395.
Location15983.
FailedToParse.
Location40415.
Location16410.
Location50840.
Location16406.
Location16872.
Location17276.
IllegalOperation.
ImmutableField.
IndexAlreadyExists.
Location10065.
IndexKeySpecsConflict.
IndexNotFound.
IndexOptionsConflict.
Location28667.
Location40353.
InvalidID.
InvalidIndexSpecificationOption.
InvalidNamespace.
InvalidOptions.
InvalidPipelineOperator.
Location15959.
MaxTimeMSExpired.
Location40414.
NamespaceExists.
NamespaceNotFound.
NotImplemented.
OperationFailed.
Location16020.
Location15998.
Location15969.
Location31254.
Location31253.
Location51091.
Location51075.
Location40272.
Location50687.
Location28724.
Location15973.
Location15975.
Location15974.
Location15976.
Location5447000.
Location40158.
Location40160.
Location40157.
Location40156.
Location15948.
Location40234.
Location15947.
Location15955.
Location40238.
Location40237.
Location7582300.
Location40323.
Location5107201.
Location15958.
Location5107200.
Location31120.
Location31002.
Location31119.
Location28812.
Location28818.
Location15981.
TypeMismatch.
Unauthorized.
Location31249.
Location31250.
PathNotViable.
Location51003.
UserNotFound.
Location51024.
Location31394.

# Structs

CommandError represents wire protocol command error.
ErrInfo represents additional optional error information.
WriteErrors represents a list of write errors.

# Interfaces

ProtoErr represents protocol error type.

# Type aliases

ErrorCode represents wire protocol error code.