#[non_exhaustive]pub enum ErrorKind {
Show 18 variants
Config,
Signature,
InvalidRequest,
PayloadTooLarge,
Json,
Http,
ShopifyApi,
GraphQl,
Throttled,
UnexpectedResponse,
InProgress,
StateMismatch,
ScopeMismatch,
NotInstalled,
Reauthorize,
OAuthDisabled,
Store,
MissingRuntime,
}Expand description
Classifies an [Error] without its payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Config
The [shopify] config is missing or not valid.
Signature
An HMAC is missing, malformed, or wrong.
InvalidRequest
The request is malformed (headers, query, or shop domain).
PayloadTooLarge
The request body is larger than the limit.
Json
A JSON payload does not parse.
Http
A Shopify call failed at the transport level.
ShopifyApi
Shopify answered with a non-success status.
GraphQl
The GraphQL response has errors.
Throttled
Shopify throttled the call and the retries ran out.
UnexpectedResponse
Shopify answered 200, but the body has the wrong shape.
InProgress
Another delivery of this webhook id still runs.
StateMismatch
The OAuth state does not match the browser cookie.
ScopeMismatch
The merchant did not grant all requested scopes.
NotInstalled
The shop has no stored access token.
The plugin cannot refresh the token. The merchant must install the app again.
OAuthDisabled
OAuth is off ([shopify] app_url is not set).
Store
A token or delivery store failed.
MissingRuntime
The app does not use the plugin (no runtime in the app state).
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.