pub struct WorkerGraphQLError {
pub name: String,
pub message: String,
pub locations: Vec<Location>,
pub extensions: Option<PlanErrorExtensions>,
pub original_error: Option<Box<WorkerError>>,
pub causes: Vec<Box<WorkerError>>,
pub validation_error: bool,
}Expand description
WorkerGraphQLError represents the GraphQLErrors the deno worker can throw.
We try to get as much data out of them.
While they mostly represent GraphQLErrors, they sometimes don’t.
See WorkerError
Fields§
§name: StringThe error kind
message: StringA short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
locations: Vec<Location>If an error can be associated to a particular point in the requested GraphQL document, it should contain a list of locations.
extensions: Option<PlanErrorExtensions>§original_error: Option<Box<WorkerError>>The original error thrown from a field resolver during execution.
causes: Vec<Box<WorkerError>>The reasons why the error was triggered (useful for schema checks)
validation_error: boolSet if the error was thrown by GraphQL spec validation.
Trait Implementations§
Source§impl Clone for WorkerGraphQLError
impl Clone for WorkerGraphQLError
Source§fn clone(&self) -> WorkerGraphQLError
fn clone(&self) -> WorkerGraphQLError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerGraphQLError
impl Debug for WorkerGraphQLError
Source§impl<'de> Deserialize<'de> for WorkerGraphQLError
impl<'de> Deserialize<'de> for WorkerGraphQLError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorkerGraphQLError
impl Display for WorkerGraphQLError
Source§impl From<WorkerGraphQLError> for PlannerError
impl From<WorkerGraphQLError> for PlannerError
Source§fn from(e: WorkerGraphQLError) -> Self
fn from(e: WorkerGraphQLError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkerGraphQLError
impl PartialEq for WorkerGraphQLError
Source§impl Serialize for WorkerGraphQLError
impl Serialize for WorkerGraphQLError
impl Eq for WorkerGraphQLError
impl StructuralPartialEq for WorkerGraphQLError
Auto Trait Implementations§
impl Freeze for WorkerGraphQLError
impl RefUnwindSafe for WorkerGraphQLError
impl Send for WorkerGraphQLError
impl Sync for WorkerGraphQLError
impl Unpin for WorkerGraphQLError
impl UnwindSafe for WorkerGraphQLError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.