errors

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 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

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