package errors

import "github.com/open-policy-agent/opa/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 ...interface{}) *storage.Error

func NewWriteConflictError

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

Source Files

errors.go

Version
v0.49.2
Published
Feb 24, 2023
Platform
windows/amd64
Imports
2 packages
Last checked
6 minutes ago

Tools for package owners.