use thiserror::Error as DeriveError;
use pest::error::Error as PestError;
use crate::did_parser::Rule;
#[derive(Debug, DeriveError)]
pub enum Error {
#[error("Format Error: {0}")]
FormatError(String),
#[error("Parse Error: {0}")]
ParseError(#[from] PestError<Rule>),
}
pub type Result<T> = std::result::Result<T, Error>;