breakpad_handler/error.rs
1use std::fmt;
2
3#[derive(Debug)]
4pub enum Error {
5 HandlerAlreadyRegistered,
6}
7
8impl std::error::Error for Error {}
9
10impl fmt::Display for Error {
11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12 match self {
13 Self::HandlerAlreadyRegistered => {
14 f.write_str("Unable to register crash handler, only one is allowed at a time")
15 }
16 }
17 }
18}