crashpad/
error.rs

1use thiserror::Error;
2
3const HANDLER_MAN_URL: &str =
4    "https://chromium.googlesource.com/crashpad/crashpad/+/HEAD/handler/crashpad_handler.md";
5
6#[derive(Debug, Error)]
7pub enum Error {
8    #[error(
9        "the exectable binary `{}` was not found since {}, more details can be found at {}",
10        crashpad_sys::handler_name(),
11        _0,
12        HANDLER_MAN_URL
13    )]
14    Which(which::Error),
15    #[error("handler error: {}", _0)]
16    Handler(String),
17    #[error("{}", _0)]
18    Other(String),
19}
20
21pub type Result<T> = ::std::result::Result<T, Error>;