summaryrefslogtreecommitdiff
path: root/common/rust/src/error.rs
blob: b602940b24168b741f694d8d7cb016c11ea857e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt;

#[derive(Debug)]
pub struct NovaError {
    pub message: String,
}

impl fmt::Display for NovaError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "An error occured wihind the nova system: {}", self.message) // user-facing output
    }
}