Documentation
¶
Overview ¶
Package errors contains reusable error-related code for the storage layer.
Index ¶
Constants ¶
View Source
const ( ArrayIndexTypeMsg = "array index must be integer" DoesNotExistMsg = "document does not exist" OutOfRangeMsg = "array index out of range" RootMustBeObjectMsg = "root must be object" RootCannotBeRemovedMsg = "root cannot be removed" )
Variables ¶
View Source
var ( NotFoundErr = &storage.Error{Code: storage.NotFoundErr, Message: DoesNotExistMsg} RootMustBeObjectErr = &storage.Error{Code: storage.InvalidPatchErr, Message: RootMustBeObjectMsg} RootCannotBeRemovedErr = &storage.Error{Code: storage.InvalidPatchErr, Message: RootCannotBeRemovedMsg} )
Functions ¶
func NewInvalidPatchError ¶ added in v1.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.