surrealpatch/tests/common/error.rs

16 lines
296 B
Rust
Raw Normal View History

use std::fmt::Debug;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum TestError {
#[error("A network error occurred: {message}")]
NetworkError {
message: String,
},
#[error("An assertion failed as part of an invocation stack: {message}")]
AssertionError {
message: String,
},
}