imag/libimagcounter/src/error.rs

12 lines
366 B
Rust
Raw Normal View History

2016-02-13 18:51:52 +00:00
use std::error::Error;
use std::fmt::Error as FmtError;
2016-04-16 15:52:51 +00:00
use std::fmt::{Display, Formatter};
2016-02-13 18:51:52 +00:00
generate_error_types!(CounterError, CounterErrorKind,
StoreReadError => "Store read error",
StoreWriteError => "Store write error",
HeaderTypeError => "Header type error",
HeaderFieldMissingError => "Header field missing error"
);
2016-02-13 18:51:52 +00:00