1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! This crate is deprecated. It is now part of the `tauri` crate.

#[macro_use]
pub mod macros;
pub mod http;
pub mod updater;

use error_chain::error_chain;

error_chain! {
    foreign_links{
        Io(::std::io::Error);
        Json(::serde_json::Error);
        Zip(::zip::result::ZipError);
        API(::tauri_api::Error);
        HTTP(::attohttpc::Error);
    }
    errors{
        Download(t: String) {
            description("Download Error")
            display("Download Error: '{}'", t)
        }
        Updater(t: String) {
            description("Updater Error")
            display("Updater Error: '{}'", t)
        }
        Release(t: String) {
            description("Release Error")
            display("Release Error: '{}'", t)
        }
        Network(t: String) {
            description("Network Error")
            display("Network Error: '{}'", t)
        }
        Config(t: String) {
            description("Config Error")
            display("Config Error: '{}'", t)
        }
    }
}