Module errors

Source
Expand description

Error types for the netpulse crate.

This module provides specialized error types for different components of netpulse:

  • StoreError - Errors related to store operations (loading, saving, versioning)
  • CheckError - Errors that occur during network checks (HTTP, ICMP)
  • RunError - Errors specific to executable operations
  • AnalysisError - Errors that occur during analysis and report generation

All error types implement the standard Error trait and provide detailed error information.

§Examples

use netpulse::store::Store;
use netpulse::errors::StoreError;

fn load_store() -> Result<Store, StoreError> {
    match Store::load(false) {
        Ok(store) => Ok(store),
        Err(StoreError::DoesNotExist) => Store::create(),
        Err(e) => Err(e),
    }
}

Enums§

AnalysisError
Errors that can occur during analysis and report generation.
CheckError
Errors that can occur during network checks.
RunError
Errors that can occur during daemon operations.
StoreError
Errors that can occur during store operations.