package errors
import "github.com/open-policy-agent/opa/internal/wasm/sdk/opa/errors"
Index ¶
Variables ¶
var ( // ErrInvalidConfig is the error returned if the OPA initialization fails due to an invalid config. ErrInvalidConfig = errors.New("invalid config") // ErrInvalidPolicyOrData is the error returned if either policy or data is invalid. ErrInvalidPolicyOrData = errors.New("invalid policy or data") // ErrInvalidBundle is the error returned if the bundle loaded is corrupted. ErrInvalidBundle = errors.New("invalid bundle") // ErrNotReady is the error returned if the OPA instance is not initialized. ErrNotReady = errors.New("not ready") // ErrUndefined is the error returned if the evaluation result is undefined. ErrUndefined = errors.New("undefined decision") // ErrNonBoolean is the error returned if the evaluation result is not of boolean value. ErrNonBoolean = errors.New("non-boolean decision") // ErrInternal is the error returned if the evaluation fails due to an internal error. ErrInternal = errors.New("internal error") )
Source Files ¶
- Version
- v0.25.2
- Published
- Dec 8, 2020
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 28 minutes ago –
Tools for package owners.