rustracing/
error.rs

1use trackable::error::ErrorKind as TrackableErrorKind;
2use trackable::error::TrackableError;
3
4/// This crate specific error type.
5#[derive(Debug, Clone, TrackableError)]
6pub struct Error(TrackableError<ErrorKind>);
7
8/// The list of the possible error kinds
9#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub enum ErrorKind {
11    /// Input data is invalid.
12    InvalidInput,
13
14    /// Other errors (e.g., I/O error).
15    Other,
16}
17impl TrackableErrorKind for ErrorKind {}