pub enum WesleyError {
ParseError {
message: String,
line: Option<u32>,
column: Option<u32>,
},
LoweringError {
message: String,
area: String,
},
ResilienceError(String),
}Expand description
Core error types for Wesley.
Variants§
ParseError
Error during parsing of GraphQL SDL.
Fields
LoweringError
Error during lowering from AST to IR.
Fields
ResilienceError(String)
Error from a resilience policy (e.g. timeout, max retries).
Trait Implementations§
Source§impl Clone for WesleyError
impl Clone for WesleyError
Source§fn clone(&self) -> WesleyError
fn clone(&self) -> WesleyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WesleyError
impl Debug for WesleyError
Source§impl<'de> Deserialize<'de> for WesleyError
impl<'de> Deserialize<'de> for WesleyError
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 WesleyError
impl Display for WesleyError
Source§impl Error for WesleyError
impl Error for WesleyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for WesleyError
impl PartialEq for WesleyError
Source§fn eq(&self, other: &WesleyError) -> bool
fn eq(&self, other: &WesleyError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WesleyError
impl Serialize for WesleyError
impl StructuralPartialEq for WesleyError
Auto Trait Implementations§
impl Freeze for WesleyError
impl RefUnwindSafe for WesleyError
impl Send for WesleyError
impl Sync for WesleyError
impl Unpin for WesleyError
impl UnsafeUnpin for WesleyError
impl UnwindSafe for WesleyError
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