1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use clvm_traits::FromClvmError;
use thiserror::Error;

use crate::ConditionError;

#[derive(Debug, Error)]
pub enum ParseError {
    #[error("failed to parse clvm value: {0}")]
    FromClvm(#[from] FromClvmError),

    #[error("condition error: {0}")]
    Condition(#[from] ConditionError),

    #[error("invalid mod hash")]
    InvalidModHash,

    #[error("non-standard inner puzzle layer")]
    NonStandardLayer,

    #[error("missing child")]
    MissingChild,

    #[error("missing hint")]
    MissingHint,

    #[error("invalid singleton struct")]
    InvalidSingletonStruct,

    #[error("mismatched singleton output (maybe no spend revealed the new singleton state)")]
    MismatchedOutput,
}