surrealpatch/tests/common/error.rs
Przemyslaw Hugh Kaznowski abbf9819c4
Add tests for Live Queries over web sockets (#2382)
Co-authored-by: Salvador Girones <salvadorgirones@gmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-08-04 17:43:23 +00:00

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,
},
}