error
Module: enforcement::error
Section titled “Module: enforcement::error”Contents
Section titled “Contents”Enums
EnforcementError- Internal enforcement error — never exposed to callers.
firma_sidecar::enforcement::error::EnforcementError
Section titled “firma_sidecar::enforcement::error::EnforcementError”Enum
Internal enforcement error — never exposed to callers.
Every variant maps to a DenyReason via into_deny().
This is the fail-closed boundary: errors become DENY decisions.
Variants:
NormalizationFailed{ detail: String }NoMatchingToken{ detail: String }TokenValidation(firma_core::TokenError)ScopeViolation{ detail: String }PolicyDenied{ detail: String }PolicyBundleStaleConfig(String)
Methods:
fn into_deny(self: Self, stage: EnforcementStage) -> EnforcementDecision- Convert any internal error to a DENY decision.
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- From
fn from(source: TokenError) -> Self
- Error
fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private18::Error>
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result