package errors

import "github.com/open-policy-agent/opa/v1/storage/internal/errors"

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

Index

Constants

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

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

Source Files

errors.go

Version
v1.5.1 (latest)
Published
Jun 4, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 day ago

Tools for package owners.