Skip to content

Implement Tri-State Monad Error Handling #20

Description

@AKRiLLiCK
  • Description: Implement the Monad tagged union (OK, NIL, ERR) marked with __attribute__((warn_unused_result)) and define the DOMAIN integer prefixes for error codes.
  • Acceptance Criteria:
    • Define the Monad union combining void* val and u32 err_code.
    • Define core domain prefixes (e.g., DOMAIN_CAMELOT, DOMAIN_APP) and specific error codes (e.g., ERR_OUT_OF_MEMORY).
    • Tests must validate unpacking logic correctly routes to isolated union payloads without type punning corruption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    In review

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions