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 41 42 43 44 45
use core::errors as core; use hyper; use serde_json; use std::io; use std::time; use toml; error_chain! { links { Core(core::Error, core::ErrorKind); } foreign_links { Io(io::Error); TomlDe(toml::de::Error); SerdeJson(serde_json::Error); UrlParseError(::url::ParseError); FromHexError(::hex::FromHexError); HyperUriError(hyper::error::UriError); HyperError(hyper::Error); SystemTimeError(time::SystemTimeError); } errors { EmptyIndex { } EmptyObjects { } NoPublishIndex(url: String) { description("index does not support publishing") display("index does not support publishing: {}", url) } NoPublishObjects(url: String) { description("object storage does not support publishing") display("object storage does not support publishing: {}", url) } PoisonError { description("mutex poisoned") } } }