graphrecords_query/error/
execution.rs1use crate::Diagnostic;
2use std::{
3 error::Error,
4 fmt::{self, Display, Formatter},
5};
6
7#[derive(Debug)]
8pub struct EvaluationCacheGraphRecordMismatch;
9
10impl Display for EvaluationCacheGraphRecordMismatch {
11 fn fmt(&self, formatter: &mut Formatter<'_>) -> fmt::Result {
12 formatter.write_str("the evaluation cache belongs to a different graphrecord")
13 }
14}
15
16impl Error for EvaluationCacheGraphRecordMismatch {}
17
18impl Diagnostic for EvaluationCacheGraphRecordMismatch {
19 fn name() -> &'static str {
20 "EvaluationCacheGraphRecordMismatch"
21 }
22}