18 lines
582 B
Rust
18 lines
582 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("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),
|
|
}
|