abbf9819c4
Co-authored-by: Salvador Girones <salvadorgirones@gmail.com> Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
15 lines
296 B
Rust
15 lines
296 B
Rust
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,
|
|
},
|
|
}
|