use thiserror::Error;
#[derive(Debug, Error, PartialEq, Eq)]
#[non_exhaustive]
pub enum JcsError {
#[error("jcs: invalid JSON text")]
InvalidJson,
#[error("jcs: duplicate object member name")]
DuplicateProperty,
#[error("jcs: non-finite number is not allowed")]
NonFiniteNumber,
#[error("jcs: integer is outside the interoperable IEEE-754 range")]
IntegerOutsideInteroperableRange,
#[error("jcs: JSON serialization error")]
SerializationError,
#[error("jcs: nesting depth limit exceeded")]
DepthExceeded,
}