use thiserror::Error;
#[derive(Error, Debug)]
pub enum SchemaDiffError {
#[error("Failed to parse schema: {0}")]
ParseError(String),
#[error("Schema comparison failed: {0}")]
ComparisonError(String),
#[error("Invalid schema format: {0}")]
InvalidFormat(String),
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
#[error("JSON error: {0}")]
JsonError(#[from] serde_json::Error),
#[error("Protobuf error: {0}")]
ProtobufError(String),
}
pub type Result<T> = std::result::Result<T, SchemaDiffError>;