1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::PoisonError;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum RuntimeError {
    #[error("unknown")]
    Unknown,
    #[error("lock poison error")]
    PoisonError,
}

impl<T> From<PoisonError<T>> for RuntimeError {
    fn from(_value: PoisonError<T>) -> Self {
        // TODO
        Self::PoisonError
    }
}