Skip to main content

Module error

Module error 

Source
Expand description

Error types for model operations. Error types for model operations.

This module provides error types for operations in the wme-models crate. These errors cover schema validation, serialization/deserialization failures, and identifier parsing errors.

§Error Handling

All errors implement std::error::Error and can be used with the ? operator. Errors are cloneable to support patterns where errors need to be stored or shared.

§Example

use wme_models::SnapshotIdentifier;
use std::str::FromStr;

match SnapshotIdentifier::from_str("invalid") {
    Ok(id) => println!("Parsed: {}", id),
    Err(e) => println!("Error: {}", e),
}

Enums§

ModelError
Errors that can occur when working with models.