Enum diana::errors::ErrorKind [−][src]
pub enum ErrorKind {}Show variants
Io(Error), EnvVar(VarError), Reqwest(Error), Json(Error), JsonWebToken(Error), Msg(String), InvalidEnvVarType(String, String), GraphQLContextNotFound(String), MutexPoisoned(String), SubscriptionDataPublishFailed, InvalidDatetimeIntervalIndicator(String), Unauthorised, IncompleteBuilderFields, HttpResponseBuilderFailed, InvokedSubscriptionsServerWithInvalidOptions, AttemptedPlaygroundInProduction, IntegrationError(String, String), // some variants omitted
Expand description
The kind of an error.
Variants
Io(Error)
EnvVar(VarError)
Reqwest(Error)
Json(Error)
JsonWebToken(Error)
Msg(String)
A convenient variant for String.
An environment variable had an invalid type. E.g. a port was given as a hex string for some reason.
GraphQLContextNotFound(String)
A required part of the GraphQL context was not found.
MutexPoisoned(String)
A Mutex was poisoned (if .lock()
failed).
The subscriptions server failed to publish data it was asked to. This error is usually caused by an authentication failure.
InvalidDatetimeIntervalIndicator(String)
An invalid indicator string was used when trying to convert a timestring into a datetime.
There was an unauthorised access attempt.
One or more required builder fields weren’t set up.
The creation of an HTTP response for Lambda or its derivatives failed.
There was an attempt to create a subscriptions server without declaring its existence or configuration in the [Options].
There was an attempt to initialize the GraphiQL playground in a production environment.
There was an error in one of the integrations.
Implementations
A string describing the error kind.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind