async_graphql/dynamic/
error.rs

1
2
3
4
5
6
7
8
9
10
/// An error can occur when building dynamic schema
#[derive(Debug, thiserror::Error, Eq, PartialEq)]
#[error("{0}")]
pub struct SchemaError(pub String);

impl<T: Into<String>> From<T> for SchemaError {
    fn from(err: T) -> Self {
        SchemaError(err.into())
    }
}