summaryrefslogtreecommitdiff
path: root/common/rust/src/error.rs
blob: be1607ae40dcfa2bfd85b062ffc3fcd761e45b36 (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 occurred within the nova system: {}", self.message) // user-facing output
    }
}