pub enum LinearError {
Authentication(String),
RateLimited {
retry_after: Option<f64>,
message: String,
},
InvalidInput(String),
Forbidden(String),
Network(Error),
GraphQL {
errors: Vec<GraphQLError>,
query_name: Option<String>,
},
MissingData(String),
HttpError {
status: u16,
body: String,
},
AuthConfig(String),
Internal(String),
}Expand description
Errors that can occur when interacting with the Linear API.
Variants§
Authentication(String)
Authentication failed (invalid or expired token).
RateLimited
Request was rate-limited.
InvalidInput(String)
Invalid input (bad arguments to a mutation).
Forbidden(String)
Forbidden (insufficient permissions).
Network(Error)
Network or HTTP transport error.
GraphQL
GraphQL errors returned by the API.
MissingData(String)
The requested data path was not found in the response.
HttpError
Non-2xx HTTP response not covered by a more specific variant.
AuthConfig(String)
Auth configuration error (no token found).
Internal(String)
Internal error (e.g. runtime creation failure).
Trait Implementations§
Source§impl Debug for LinearError
impl Debug for LinearError
Source§impl Display for LinearError
impl Display for LinearError
Source§impl Error for LinearError
impl Error for LinearError
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()
Auto Trait Implementations§
impl Freeze for LinearError
impl !RefUnwindSafe for LinearError
impl Send for LinearError
impl Sync for LinearError
impl Unpin for LinearError
impl !UnwindSafe for LinearError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.