testudo/src/errors.rs
src/errors.rsRaw
1use core::fmt;
2
3pub struct ProofVerifyError;
4
5impl fmt::Display for ProofVerifyError {
6 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7 write!(f, "Proof verification failed")
8 }
9}
10
11impl fmt::Debug for ProofVerifyError {
12 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
13 write!(f, "{{ file: {}, line: {} }}", file!(), line!())
14 }
15}