// SPDX-FileCopyrightText: Copyright 2026 olav@occy.org
// SPDX-License-Identifier: MPL-2.0
//! Errors related to keys and values. No panics.
use thiserror::Error;
#[derive(Debug, Error, PartialEq)]
pub enum Error {
#[error("format: {0}")]
Format(String),
#[error("number: {0}")]
Number(String),
#[error("operation: {0}")]
Operation(String),
#[error("parse: {0}")]
Parse(String),
}
impl From<saphyr::ScanError> for Error {
fn from(value: saphyr::ScanError) -> Self {
Error::Parse(value.to_string())
}
}