use thiserror::Error;
#[derive(Debug, Error, PartialEq, Eq)]
pub enum JcsError {
#[error("jcs: non-finite number is not allowed")]
NonFiniteNumber,
#[error("jcs: JSON serialization error")]
SerializationError,
#[error("jcs: nesting depth limit exceeded")]
DepthExceeded,
}