This repository has been archived on 2026-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
molotov/crates/molotov-bootstrap/src/error.rs

20 lines
681 B
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
use thiserror::Error;
#[derive(Error, Debug)]
pub enum MolotovError {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Network request failed: {0}")]
Network(#[from] reqwest::Error),
#[error("JSON serialization/deserialization error: {0}")]
Json(#[from] serde_json::Error),
#[error("Signature verification failed: expected {expected}, found {found}")]
SignatureMismatch { expected: String, found: String },
#[error("APK parsing error: {0}")]
ApkMalformed(String),
#[error("FastFlag error: {0}")]
FastFlag(String),
#[error("Sandbox error: {0}")]
Sandbox(String),
}