Type Alias async_graphql::FieldError
source · pub type FieldError = Error;
Expand description
An alias of async_graphql::Error. Present for backward compatibility reasons.
Aliased Type§
struct FieldError {
pub message: String,
pub source: Option<Arc<dyn Any + Send + Sync, Global>>,
pub extensions: Option<ErrorExtensionValues>,
}
Fields§
§message: String
The error message.
source: Option<Arc<dyn Any + Send + Sync, Global>>
The source of the error.
extensions: Option<ErrorExtensionValues>
Extensions to the error.
Implementations§
source§impl Error
impl Error
sourcepub fn new_with_source(source: impl Display + Send + Sync + 'static) -> Self
pub fn new_with_source(source: impl Display + Send + Sync + 'static) -> Self
Create an error with a type that implements Display
, and it will also
set the source
of the error to this value.
sourcepub fn into_server_error(self, pos: Pos) -> ServerError
pub fn into_server_error(self, pos: Pos) -> ServerError
Convert the error to a server error.