live 0.3.1

A modular configuration framework with live reloading and atomic, format-agnostic updates.
Documentation
/* src/controller/error.rs */

use crate::holder::HoldError;
use crate::loader::FmtError;
use thiserror::Error;

/// Errors that can occur in the Live controller.
#[derive(Debug, Error)]
pub enum LiveError {
	#[error("Load error: {0}")]
	Load(#[from] FmtError),

	#[error("Store error: {0}")]
	Store(#[from] HoldError),

	#[cfg(feature = "signal")]
	#[error("Signal error: {0}")]
	Signal(#[from] crate::signal::SignalError),

	#[error("Config not loaded yet. Call load() before watch().")]
	NotLoaded,

	#[error("Missing requirement: {0}")]
	Builder(String),
}