Error representing a failed rule evaluation.
Summary
Functions
Returns a new EvaluationError struct.
Returns a new EvaluationError struct that contains the given expression.
Types
@type t() :: %Spek.EvaluationError{ __exception__: term(), expression: Spek.expression() | nil, message: String.t() }
Struct returned or raised if an authorization check fails.
expression contains the parts of the policy expression that were performed
and their results. Depending on the evaluation function used, this may be the
complete expression, or only the parts of it that were evaluated until a
decision was made.
Functions
Returns a new EvaluationError struct.
@spec with_expression(String.t(), Spek.expression()) :: t()
Returns a new EvaluationError struct that contains the given expression.