load_model_graceful

Function load_model_graceful 

Source
pub fn load_model_graceful(path: &Path) -> Result<MarkovModel, ShellError>
Expand description

Load model with graceful error handling.

Instead of panicking on errors, returns a descriptive ShellError with hints for resolution.

§Arguments

  • path - Path to the model file

§Returns

  • Ok(MarkovModel) - Successfully loaded model
  • Err(ShellError) - Descriptive error with hints