Skip to main content

Module error

Module error 

Source
Expand description

Error types for sysprims operations.

This module defines the error taxonomy per ADR-0008:

  • SysprimsError - Canonical error type for all sysprims operations

§Design Principles

  • Structured: Errors carry typed context (pid, operation) not just messages
  • FFI-friendly: Maps cleanly to error codes for C-ABI
  • ABI-aligned: Uses u32 for PIDs (unsigned for cross-platform consistency)
  • Secure: No sensitive information (paths, credentials) in error messages

See ADR-0008 for the full error handling strategy.

Enums§

SysprimsError
Canonical error type for all sysprims operations.

Type Aliases§

SysprimsResult
Result type alias for sysprims operations.