Skip to content

Custom error variant for unknown severities via None-friendly path #88

Description

@usmanimamu17-create

Problem Statement. Today, unknown severities produce ConfigNotFound
which the host SDK surfaces as a panic via the auto-generated client.
Bots and external tooling cannot distinguish between "config not yet
initialized" and "you passed an invalid severity".

Expected Outcome. Introduce SLAError::SeverityNotInSet (distinct
code) for unrecognized severity inputs in set_config,
calculate_sla, get_config. Update get_failure_schema accordingly.

Files: lib.rs, event_state_tests.rs,
new unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiImported from ISSUES.mderrorsImported from ISSUES.md

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions