Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

274 B
Raw Blame
use thiserror::Error;

#[derive(Debug, Error)]
pub enum UriError {
    #[error("HTTP error: {0}")]
    Http(#[from] tauri::http::Error),

    #[error("Cache error: {0}")]
    Cache(#[from] crate::cache::CacheError),
}

pub type Result<T> = std::result::Result<T, UriError>;