errors

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains reusable error-related code for the storage layer.

Index

Constants

View Source
const ArrayIndexTypeMsg = "array index must be integer"
View Source
const DoesNotExistMsg = "document does not exist"
View Source
const OutOfRangeMsg = "array index out of range"

Variables

This section is empty.

Functions

func NewNotFoundError

func NewNotFoundError(path storage.Path) *storage.Error

func NewNotFoundErrorWithHint

func NewNotFoundErrorWithHint(path storage.Path, hint string) *storage.Error

func NewNotFoundErrorf

func NewNotFoundErrorf(f string, a ...interface{}) *storage.Error

func NewWriteConflictError added in v0.39.0

func NewWriteConflictError(p storage.Path) *storage.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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