bsonerr

package
v0.0.0-...-d5f3c33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ElementNotFound = errors.New("element not found")

ElementNotFound indicates that an Element matching a certain condition does not exist.

View Source
var EmptyKey = errors.New("empty key provided")

EmptyKey indicates that no key was provided to a Lookup method.

View Source
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.

View Source
var InvalidBinarySubtype = errors.New("invalid BSON binary Subtype")

InvalidBinarySubtype indicates that a BSON binary value had an undefined subtype.

View Source
var InvalidBooleanType = errors.New("invalid value for BSON Boolean Type")

InvalidBooleanType indicates that a BSON boolean value had an incorrect byte.

View Source
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.

View Source
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.

View Source
var InvalidElement = errors.New("invalid Element")

InvalidElement indicates that a bson.Element had invalid underlying BSON.

View Source
var InvalidKey = errors.New("invalid document key")

InvalidKey indicates that the BSON representation of a key is missing a null terminator.

View Source
var InvalidLength = errors.New("document length is invalid")

InvalidLength indicates that a length in a binary representation of a BSON document is invalid.

View Source
var InvalidReadOnlyDocument = errors.New("invalid read-only document")

InvalidReadOnlyDocument indicates that the underlying bytes of a bson.Reader are invalid.

View Source
var InvalidString = errors.New("invalid string value")

InvalidString indicates that a BSON string value had an incorrect length.

View Source
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.

View Source
var NilDocument = errors.New("document is nil")

NilDocument indicates that an operation was attempted on a nil *bson.Document.

View Source
var NilElement = errors.New("element is nil")

NilElement indicates that a nil element was provided when none was expected.

View Source
var NilReader = errors.New("nil reader")

NilReader indicates that an operation was attempted on a nil bson.Reader.

View Source
var OutOfBounds = errors.New("out of bounds")

OutOfBounds indicates that an index provided to access something was invalid.

View Source
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.

View Source
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

type ElementType struct {
	Method string
	Type   bsontype.Type
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL