Skip to main content

megumax_template/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4#[error("Cannot find `{key}` key in the template pool")]
5pub struct KeyLookUpError {
6	key: String,
7}
8
9impl KeyLookUpError {
10	pub fn new(key: impl Into<String>) -> Self {
11		Self { key: key.into() }
12	}
13}