Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ElementNotFound = errors.New("element not found")
ElementNotFound indicates that an Element matching a certain condition does not exist.
var EmptyKey = errors.New("empty key provided")
EmptyKey indicates that no key was provided to a Lookup method.
var InvalidArrayKey = errors.New("invalid array key")
InvalidArrayKey indicates that a key that isn't a positive integer was used to lookup an element in an array.
var InvalidBinarySubtype = errors.New("invalid BSON binary Subtype")
InvalidBinarySubtype indicates that a BSON binary value had an undefined subtype.
var InvalidBooleanType = errors.New("invalid value for BSON Boolean Type")
InvalidBooleanType indicates that a BSON boolean value had an incorrect byte.
var InvalidDepthTraversal = errors.New("invalid depth traversal")
InvalidDepthTraversal indicates that a provided path of keys to a nested value in a document does not exist.
TODO(skriptble): This error message is pretty awful. Please fix.
var InvalidDocumentType = errors.New("invalid document type")
InvalidDocumentType indicates that a type which doesn't represent a BSON document was was provided when a document was expected.
var InvalidElement = errors.New("invalid Element")
InvalidElement indicates that a bson.Element had invalid underlying BSON.
var InvalidKey = errors.New("invalid document key")
InvalidKey indicates that the BSON representation of a key is missing a null terminator.
var InvalidLength = errors.New("document length is invalid")
InvalidLength indicates that a length in a binary representation of a BSON document is invalid.
var InvalidReadOnlyDocument = errors.New("invalid read-only document")
InvalidReadOnlyDocument indicates that the underlying bytes of a bson.Reader are invalid.
var InvalidString = errors.New("invalid string value")
InvalidString indicates that a BSON string value had an incorrect length.
var InvalidWriter = errors.New("bson: invalid writer provided")
InvalidWriter indicates that a type that can't be written into was passed to a writer method.
var NilDocument = errors.New("document is nil")
NilDocument indicates that an operation was attempted on a nil *bson.Document.
var NilElement = errors.New("element is nil")
NilElement indicates that a nil element was provided when none was expected.
var NilReader = errors.New("nil reader")
NilReader indicates that an operation was attempted on a nil bson.Reader.
var OutOfBounds = errors.New("out of bounds")
OutOfBounds indicates that an index provided to access something was invalid.
var StringLargerThanContainer = errors.New("string size is larger than the JavaScript code with scope container")
StringLargerThanContainer indicates that the code portion of a BSON JavaScript code with scope value is larger than the specified length of the entire value.
var UninitializedElement = errors.New("bson/ast/compact: Method call on uninitialized Element")
UninitializedElement is returned whenever any method is invoked on an uninitialized Element.
Functions ¶
This section is empty.
Types ¶
type ElementType ¶
ElementTypeError specifies that a method to obtain a BSON value an incorrect type was called on a bson.Value.
func (ElementType) Error ¶
func (ete ElementType) Error() string
Error implements the error interface.