Skip to main content

luaur_analysis/records/
generic_error.rs

1use alloc::string::String;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4pub struct GenericError {
5    pub(crate) message: String,
6}
7
8impl GenericError {
9    pub const fn new(message: String) -> Self {
10        Self { message }
11    }
12}
13
14#[allow(non_snake_case)]
15impl GenericError {
16    pub fn message(&self) -> &str {
17        &self.message
18    }
19}