mermaid_builder/errors/config_error.rs
1//! Submodule providing an enumeration of possible errors that can occur in the
2//! configuration of diagrams in Mermaid syntax.
3
4use thiserror::Error;
5
6#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Error)]
7#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
8/// Enum representing errors related to configuration in Mermaid diagrams.
9pub enum ConfigError {
10 /// The provided diagram title is empty.
11 #[error("Configuration title cannot be empty.")]
12 EmptyTitle,
13}