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
- func NewNotFoundError(path storage.Path) *storage.Error
- func NewNotFoundErrorWithHint(path storage.Path, hint string) *storage.Error
- func NewNotFoundErrorf(f string, a ...any) *storage.Error
- func NewWriteConflictError(p storage.Path) *storage.Error
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 NewNotFoundErrorWithHint ¶
func NewNotFoundErrorf ¶
func NewWriteConflictError ¶
Source Files ¶
- Version
- v1.5.1 (latest)
- Published
- Jun 4, 2025
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 16 hours ago –
Tools for package owners.