1use thiserror::Error;
2
3#[derive(Debug, Clone, Error, PartialEq)]
4pub enum EureToJsonError {
5 #[error("Hole (uninitialized value) is not supported in JSON")]
6 HoleNotSupported,
7
8 #[error("BigInt value is out of range for JSON number")]
9 BigIntOutOfRange,
10
11 #[error("Non-finite floating point value (NaN or Infinity) is not supported in JSON")]
12 NonFiniteFloat,
13
14 #[error("Variant content already contains tag field '{tag}' in Internal representation")]
15 VariantTagConflict { tag: String },
16
17 #[error("Variant content already contains field '{field}' in Adjacent representation")]
18 VariantAdjacentConflict { field: String },
19}
20
21#[derive(Debug, Error, PartialEq)]
25pub enum JsonToEureError {
26 }