Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 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 ...any) *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